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

This seems like a pretty big behavior change, if all we want to fix is "don't run scripts before the fragment insertion is done".  That is, we would need to audit and test all the things in the spec that do insertion steps to make sure that this is OK, _and_ browsers would need to add a bunch of complexity and runtime overhead to various nodes to make this work.

I'm not a huge fan of this last; the runtime overhead of insertion is already bad enough.  We do need some sort of delaying mechanism like this specifically for script execution (though possibly not all of "prepare a script"; Gecko does most of "prepare a script" immediately on insertion but defers the "immediately execute the script block" to a safe point, for example), but not necessarily across the board. 

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

Received on Monday, 26 February 2018 14:36:17 UTC