devpunks / snuggsi

snuggsi ツ - Easy Custom Elements in ~1kB

Home Page:https://snuggsi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

snuggs opened this issue · comments

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

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?

@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