Bug 42142
| Summary: | HTMLTreeBuilder: JavaScript line numbers are wrong if there is more than one script tag | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | abarth, tonyg |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | OS X 10.5 | ||
Eric Seidel (no email)
HTMLTreeBuilder: JavaScript line numbers are wrong if there is more than one script tag
Example:
<script></script>
<script>var\u0009x;</script>
CONSOLE MESSAGE: line 1: SyntaxError: Parse error
Even though it should be line number 5.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
It's because we haven't done the , m_lastScriptElementStartLine(uninitializedLineNumberValue)
stuff.