- From: <bugzilla@jessica.w3.org>
- Date: Tue, 10 Dec 2013 03:00:30 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24042 --- Comment #2 from Elliott Sprehn <esprehn@gmail.com> --- (In reply to Boris Zbarsky from comment #1) > It's not just document.write, is it? > > When slow.js runs, can it tell whether 2.html has been loaded? If so, it'll > see a somewhat non-deterministic view of the DOM... > > I guess @async scripts have some of that behavior too, though. Yes, @async already has this behavior. You will always have a non-deterministic view of the main document from an import since it doesn't block the parser as we treat imports like stylesheets not script when parsing. We're extending that behavior to the entire import tree. The reason to throw in document.write() is that it prevents depending on the tokens being inserted in any particular place. I'm not sure why <script async> doesn't throw when you document.write(), we probably should have made it do so. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Tuesday, 10 December 2013 03:00:31 UTC