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

I have updated my custom element (https://github.com/tomalec/declarative-shadow-dom) match the ideas from this issue closer. I hope, you can use it for further fiddling and experiment with the idea.

 Unfortunately, I could not stamp on the constructor, due to platform limitations, so it stamps on `connectedCallback` or when a method is invoked manually.

Behavior:
- It's customized `<template>` element, so for the environment that does not support Custom Elements and Shadow DOM it's inert and does nothing,
- When `connected` stamps it's content to the `parentElement`s shadow root (creates new if there is none) and removes itself - I could do that on constructor, as `parentElement` is `null`,
- There is a method to stamp it manually if you want to do that earlier.



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

Received on Wednesday, 8 November 2017 19:19:25 UTC