Bug 40416 - HTML5 Parser should continue parsing after script execution
: HTML5 Parser should continue parsing after script execution
Status: RESOLVED FIXED
: WebKit
New Bugs
: 528+ (Nightly build)
: Other Mac OS X 10.5
: P2 Normal
Assigned To:
:
:
:
: 39259
  Show dependency treegraph
 
Reported: 2010-06-10 03:34 PST by
Modified: 2010-06-10 11:18 PST (History)


Attachments
Patch (4.75 KB, patch)
2010-06-10 03:38 PST, Eric Seidel
abarth: review-
Review Patch | Details | Formatted Diff | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2010-06-10 03:34:12 PST
HTML5 Parser should continue parsing after script execution
------- Comment #1 From 2010-06-10 03:38:35 PST -------
Created an attachment (id=58356) [details]
Patch
------- Comment #2 From 2010-06-10 10:20:44 PST -------
(From update of attachment 58356 [details])
Nice, but can you add your reduced test case?  That's a lot easier to understand than the crazy JavaScript test that this actually fixes.
------- Comment #3 From 2010-06-10 10:44:46 PST -------
Here's the reduction eric sent me in email:

<pre id="log"></pre>
<script>
function log(string) {
   document.getElementById("log").innerHTML += string + "\n";
}
log("1");
document.write("<script>log('2')<"+"/script>");
document.write("<script>log('3')<"+"/script>");
log("4");
</script>

I've converted it to a layout test locally.  I just need to build and test it and I can land this for him.
------- Comment #4 From 2010-06-10 11:18:06 PST -------
Committed r60966: <http://trac.webkit.org/changeset/60966>