- From: aspiring484 <notifications@github.com>
- Date: Mon, 03 Feb 2025 18:35:11 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 4 February 2025 02:35: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: > > <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. https://phps.space/questions/difficulty-in-selecting-html-dom-tags -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/510#issuecomment-2632654563 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/510/2632654563@github.com>
Received on Tuesday, 4 February 2025 02:35:15 UTC