Bug 9554 - Script written by a script but not closed by it is not parsed correctly
Summary: Script written by a script but not closed by it is not parsed correctly
Status: RESOLVED DUPLICATE of bug 9317
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2006-06-23 09:25 PDT by mitz
Modified: 2006-06-25 22:35 PDT (History)
2 users (show)

See Also:


Attachments
Test case (will assert) (262 bytes, text/html)
2006-06-23 09:26 PDT, mitz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2006-06-23 09:25:27 PDT
In the attached test case, the first script writes a <script> tag, followed by one JavaScript statement, but doesn't write a </script> tag. Therefore everything after the first script's closing tag up until the second </script> tag should be interpreted as part of the script written by the first script.

WebKit loses the entire second script (and consequently also fails an assertion in debug builds). Firefox behaves correctly.

Note that if the first script write a complete script, i.e. writes a </script> tag, then it's interpreted correctly.
Comment 1 mitz 2006-06-23 09:26:58 PDT
Created attachment 8982 [details]
Test case (will assert)
Comment 2 mitz 2006-06-25 22:35:27 PDT
This bug is the "first half" of bug 9317.

*** This bug has been marked as a duplicate of 9317 ***