Bug 40416 - HTML5 Parser should continue parsing after script execution
: HTML5 Parser should continue parsing after script execution
Status: RESOLVED FIXED
Product: WebKit
Classification: Unclassified
Component: New Bugs
: 528+ (Nightly build)
: Other Mac OS X 10.5
: P2 Normal
Assigned To: Eric Seidel
:
Depends on:
Blocks: 39259
  Show dependency treegraph
 
Reported: 2010-06-10 03:34 PDT by Eric Seidel
Modified: 2010-06-10 11:18 PDT (History)
2 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel 2010-06-10 03:34:12 PDT
HTML5 Parser should continue parsing after script execution
Comment 1 Eric Seidel 2010-06-10 03:38:35 PDT
Created attachment 58356 [details]
Patch
Comment 2 Adam Barth 2010-06-10 10:20:44 PDT
Comment on attachment 58356 [details]
Patch

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 Adam Barth 2010-06-10 10:44:46 PDT
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 Adam Barth 2010-06-10 11:18:06 PDT
Committed r60966: <http://trac.webkit.org/changeset/60966>