Re: [whatwg/dom] Declarative Shadow DOM (#510)

@tjmonsi I don't think anyone is proposing declarative syntax for _defining_ a custom element, that may be where your confusion stems from. Today the only way to define a custom element is to call `customElements.define()`. They're discussing how to represent an element (and its shadow root) after it has already been defined. This would benefit use cases where you want to server side render elements with shadow roots. This would benefit things like bots/crawlers who may not run JavaScript and would have no other way of knowing what content lives inside of a `<my-app>` element.

-- 
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-330023682

Received on Sunday, 17 September 2017 06:09:33 UTC