[Webkit-unassigned] [Bug 40068] Second document.write() of external script fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 2 10:34:54 PDT 2010


--- Comment #1 from Tony Gentilcore <tonyg at chromium.org>  2010-06-02 10:34:54 PST ---
Thinking about this more it makes some sense.

The first write causes the parser to be blocked by the external script. While the parser is blocked, the script continues executing. It executes the second document.write(), but its content is parser-blocked. Thus at the point the getElementById('bar') executes, the parsed source does not contain the 'bar' script yet.

The only way to fix this would be to pause script execution until the external script executes. It isn't clear to me if that is the way it should work or if this is working as intended. Perhaps HTML5 defines this behavior? Thoughts?

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list