devpunks / snuggsi

snuggsi ツ - Easy Custom Elements in ~1kB
https://snuggsi.com
MIT License
395 stars 17 forks source link

Issue with <template> and <tr> <table> rows. #163

Open snuggs opened 6 years ago

snuggs commented 6 years ago

There's a nasty HTML Parser bug/feature which prevents <tr> <td> from being inserted into the DOM outside of a <table>. Also a bug/feature that prevents <template> from being inside table. However the later <template> issue may be a non-issue as <template>s are able to be used liberally.

References

brandondees commented 6 years ago

not too worried about the latter although it's possibly a little inconvenient for snuggsi-style use of inline templates. does <template> work inside a td or not at all anywhere within a table element?

what's a use case for using <tr> <td> outside of a table?

snuggs commented 5 years ago

@brandondees come to find out where the template is is irrelevant. More about whether or not <tr> and <td> are contained within table. Am writing a summary for this and more recently #178

/cc @RobertChristopher