[Webkit-unassigned] [Bug 40047] New: REGRESSION(60409): document.write is not synchronous when using the HTML5 parser
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 2 00:03:08 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=40047
Summary: REGRESSION(60409): document.write is not synchronous
when using the HTML5 parser
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
CC: hyatt at apple.com, ian at hixie.ch, abarth at webkit.org
REGRESSION(60409): document.write is not synchronous when using the HTML5 parser
It's unclear from the spec:
http://www.whatwg.org/specs/web-apps/current-work/multipage/apis-in-html-documents.html#document.write()
But it seems to me that document.write() should wait until all parsing is "done" for the write before returning.
In the old parser this was not an issue, as it was not as aggressive about yielding. The new HTML5 parser yields when waiting for script loads or for stylesheet loads.
http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#running-a-script
talks about queuing tasks on the task queue, but it doesn't really talk about the parser yielding.
The old parser never seems to wait for <script src=""> tags during parsing (in violation of HTML5) nor does it block inline <script> tags ever (which HTML5 says it should for style-sheets), so I think that's how it produces a synchronous document.write behavior.
--
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