Bug 25767
Summary: | expressionBeginOffset, expressionCaretOffset, expressionEndOffset are relative to sourceId start | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 | ||
Bug Depends on: | 25745 | ||
Bug Blocks: |
Eric Seidel (no email)
expressionBeginOffset, expressionCaretOffset, expressionEndOffset
are relative to sourceId start instead of line start or sourceURL resource start. This makes them difficult for web authors to use.
If we're going to expose these, we should make them relative to the start of hte line, or the start of the entire resource, instead of the start of the script content itself (which could be an inline event handler and thus one would have to work backwards from the sourceURL and line number and guess which inline event handler on that line was the one throwing the exception).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |