Summary: | document.write() isn't processed immediately before DOM access | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Hajime Morrita <morrita> | ||||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | abarth, ap, commit-queue | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | PC | ||||||||
OS: | All | ||||||||
Attachments: |
|
This is fixed on trunk, presumably when I fixed Bug 8961. ap is going to ask me to land a test for this bug. Created attachment 64470 [details]
Patch
Comment on attachment 64470 [details]
Patch
Thank you!
Comment on attachment 64470 [details] Patch Clearing flags on attachment: 64470 Committed r65401: <http://trac.webkit.org/changeset/65401> All reviewed patches have been landed. Closing bug. |
Created attachment 52152 [details] reproduce Following results "SecondFirst". The result should be "FirstSecond": document.write("<div class='parent' id='innerHTMLTextDom'>"); document.write("First"); document.getElementById("innerHTMLTextDom").innerHTML += "Second"; document.write("</div>");