- From: Ryosuke Niwa <notifications@github.com>
- Date: Mon, 24 Aug 2020 17:06:32 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 25 August 2020 00:06:45 UTC
```js const registry = new CustomElementRegistry; const d1 = document.createElement('div'); d1.attachShadow({mode: 'closed', registry}).innerHTML = '<some-element id="d1s1"></some-element><some-element id="d1s2">'; const d2 = document.createElement('div'); d2.attachShadow({mode: 'closed', registry}).innerHTML = '<some-element id="d2s1">'; const d3 = document.createElement('div'); d3.attachShadow({mode: 'closed', registry}).innerHTML = '<some-element id="d3s1">'; const iframe = document.createElement('iframe'); document.body.append(d2, d1, iframe); iframe.contentDocument.body.append(d3); class SomeElement extends HTMLElement { constructor() { super(); this.attachShadow({mode: 'closed'}).innerHTML = '<other-element></other-element>'; } } registry.define('some-element', SomeElement); customElements.define('other-element', class OtherElement extends HTMLElement { }); ``` Now, should d1s1, d1s2, d2s1, and d3s1 be upgraded? If so, in what order? Should other-element in d1s1, d1s2, d2s1, and d3s1's shadow trees be upgraded if so, in what order? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/716#issuecomment-679426920
Received on Tuesday, 25 August 2020 00:06:45 UTC