Re: [whatwg/dom] Run insertion steps after DocumentFragment insertion completes (#576)

Except in Edge, `style.sheet` initialization is queued similar to scripts. I.e., the following logs null in the Live DOM Viewer:
```html
<script>
 var s1 = document.createElement("style"); s1.textContent = "body { background:lime }";
 var s2 = document.createElement("script"); s2.textContent = "w(s1.sheet)";
 var df = document.createDocumentFragment(); df.appendChild(s2); df.appendChild(s1);
 document.head.appendChild(df);
</script>
```

-- 
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/pull/576#issuecomment-368598457

Received on Monday, 26 February 2018 18:23:45 UTC