question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"bad template" but why?

See original GitHub issue

Hi there

Not sure why i get a “bad template” message on this one:

let content = html`<div>
  <caption>
    Hurray
  </caption>
  <div class="fd-table__header">
    <tr class=${`someClass`}></tr>
  </div>
</div> `;
render(document.getElementById("app"), content);

It’s highly possible i’m doing something stupidly wrong 😃

When removing the root <div> it will work

https://codesandbox.io/s/compassionate-benji-zn94ke?file=/src/index.js

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fopsdevcommented, Jul 5, 2022

Ok thanks. Makes sense to me now👍 I like how your lib helps me to understand html better 😃

0reactions
WebReflectioncommented, Jul 5, 2022

P.S. if you’d like to complain about Safari choice around making certain elements not possible to extend please do as your case has been raised already by everyone in the field.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Are Templates Bad? - Adams on Contract Drafting
But we know what bad drafting is like—I've described it in excruciating detail ... Bad BigLaw M&A contracts likely come from bad templates....
Read more >
Mr Mackey Meme Generator - Imgflip
Insanely fast, mobile-friendly meme generator. Make Mr Mackey memes or upload your own images to make custom memes.
Read more >
"You Want To" Hypnotist Swirl Meme Template - Kapwing
This template is most well-known for its "You want to shut up // You want to shut up so bad" rendition, but you...
Read more >
Templates: The Good, the Bad, and the Ugly - LinkedIn
Over the years, I have realized that templates are not all bad and not all good either. There are good and bad practices...
Read more >
We Were Bad, But Now We're Good - Template
See more 'We Were Bad, But Now We're Good' images on Know Your Meme!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found