Bug 42142 - HTMLTreeBuilder: JavaScript line numbers are wrong if there is more than one script tag
Summary: HTMLTreeBuilder: JavaScript line numbers are wrong if there is more than one ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 22:19 PDT by Eric Seidel (no email)
Modified: 2010-07-12 22:20 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2010-07-12 22:19:17 PDT
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.
Comment 1 Eric Seidel (no email) 2010-07-12 22:20:25 PDT
It's because we haven't done the     , m_lastScriptElementStartLine(uninitializedLineNumberValue)
 stuff.