- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 26 Feb 2018 07:42:31 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 26 February 2018 15:43:02 UTC
Here's another interesting case: ``` .<script> customElements.define("h-i", class HI extends HTMLElement { connectedCallback() { w("HI is connected") } }); df = document.createDocumentFragment(); s1 = df.appendChild(document.createElement("script")); s1.textContent = "w('s1 executed');"; df.appendChild(document.createElement("h-i")); s2 = df.appendChild(document.createElement("script")); s2.textContent = "w('s2 executed');"; document.head.appendChild(df); </script> ``` Currently the order is s1, s2, HI. I guess with the proposed change it'd be HI, s1, s2? Or if we introduce a "script queue" concept as per https://github.com/whatwg/dom/pull/576 could we reuse that for custom element reactions and make it s1, HI, s2? And what is preferred for this scenario? -- 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/606#issuecomment-368544857
Received on Monday, 26 February 2018 15:43:02 UTC