- From: <bugzilla@jessica.w3.org>
- Date: Thu, 21 Jul 2011 17:40:03 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13319 Summary: Script errors should provide column position Product: HTML WG Version: unspecified Platform: All URL: http://www.w3.org/TR/html5/webappapis.html#runtime-scr ipt-errors OS/Version: All Status: NEW Severity: normal Priority: P3 Component: HTML5 spec (editor: Ian Hickson) AssignedTo: ian@hixie.ch ReportedBy: adrianba@microsoft.com QAContact: public-html-bugzilla@w3.org CC: mike@w3.org, public-html-wg-issue-tracking@w3.org, public-html@w3.org The window.onerror function needs a 4th parameter for column number. For sites that report exceptions to a server for post mortem analysis, column offsets enable developers to locate the source location in JavaScript files that have been minified or in other cases where many statements are on a single line. It would also be helpful if the spec called out that the line and column offsets should be 1 based so that implementations can be consistent. Proposed updates: The function must be invoked with four arguments. The four arguments passed to the function are all DOMStrings; the first must give the message that the UA is considering reporting, the second must give the absolute URL of the resource in which the error occurred, the third must give the one based line number in that resource on which the error occurred and the fourth must give the one based column offset for the start of the statement which the error occurred. -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Thursday, 21 July 2011 17:40:05 UTC