snuggsi icon indicating copy to clipboard operation
snuggsi copied to clipboard

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

Open snuggs opened this issue 7 years ago • 2 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

  • http://davismj.me/blog/advanced-tables
  • http://www.sobell.net/dynamically-adding-row-templates-to-a-table-in-aurelia
  • https://vuejs.org/v2/guide/components.html#DOM-Template-Parsing-Caveats

snuggs avatar Jan 23 '18 19:01 snuggs

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 avatar Jan 25 '18 07:01 brandondees

@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

snuggs avatar Dec 23 '18 18:12 snuggs