- From: mildred <notifications@github.com>
- Date: Thu, 31 Jan 2019 12:36:50 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 31 January 2019 12:37:15 UTC
If I understand well, the reason this will not be implemented is because the `<template>` element caused such disruption in parsers, that it can still cause bugs here and there. So a new element is not considered a sane proposal. Then why not keep the `<template>` tag and introduce ways to bind the DOM of a template as a shadow DOM of another element. It can also help deduplicate shadow DOM trees too. Something like this: ```html <div shadowdom="hello">World</div> <template id="hello" shadowmode="open"> Hello <slot></slot> </template> ``` The `shadowdom` attrigute references the id of a matching template. The `shadowmode` attribute is inspired from https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Declarative-Custom-Elements-Strawman.md This has also the advantage of not requiring disappearing elements, or self modifying markup. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/510#issuecomment-459328768
Received on Thursday, 31 January 2019 12:37:15 UTC