- From: poot <cvsmail@w3.org>
- Date: Tue, 31 Jan 2012 18:36:43 -0500
- To: public-html-diffs@w3.org
hixie: Try adding a fourth argument, 'column', to onerror handlers. (whatwg r6957) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5553&r2=1.5554&f=h http://html5.org/tools/web-apps-tracker?from=6956&to=6957 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5553 retrieving revision 1.5554 diff -u -d -r1.5553 -r1.5554 --- Overview.html 31 Jan 2012 23:06:20 -0000 1.5553 +++ Overview.html 31 Jan 2012 23:36:29 -0000 1.5554 @@ -51622,8 +51622,8 @@ entry-point</a></i>.</p> <p>Otherwise, <a href="#report-the-error">report the error</a> at the script source - URL, with the problematic line number, in the script's - <a href="#origin">origin</a>, using the <code title="handler-window-onerror"><a href="#handler-window-onerror">onerror</a></code> <a href="#event-handlers" title="event + URL, with the problematic position (line number and column + number), in the script's <a href="#origin">origin</a>, using the <code title="handler-window-onerror"><a href="#handler-window-onerror">onerror</a></code> <a href="#event-handlers" title="event handlers">event handler</a> of the <a href="#script-s-global-object">script's global object</a>. If the error is still <i title="concept-error-nothandled"><a href="#concept-error-nothandled">not handled</a></i> after this, then the error may be reported to the user.</p> @@ -51701,7 +51701,7 @@ <h5 id="runtime-script-errors"><span class="secno">6.1.3.5 </span>Runtime script errors</h5> <p>When the user agent is required to <dfn id="report-the-error" title="report the - error">report an error</dfn> at a particular <a href="#url">URL</a> <var title="">location</var> with a particular line number <var title="">line</var> in a particular origin <var title="">origin</var>, using the <a href="#event-handlers" title="event handlers">event + error">report an error</dfn> at a particular <a href="#url">URL</a> <var title="">location</var> with a particular position <var title="">line</var>:<var title="">col</var> in a particular origin <var title="">origin</var>, using the <a href="#event-handlers" title="event handlers">event handler</a> <var title="">onerror</var>, it must run these steps, after which the error is either <dfn id="concept-error-handled" title="concept-error-handled"><i>handled</i></dfn> or <dfn id="concept-error-nothandled" title="concept-error-nothandled"><i>not handled</i></dfn>:</p> @@ -51722,7 +51722,7 @@ <li> - <p>The function must be invoked with three arguments: <var title="">message</var>, <var title="">location</var>, and <var title="">line</var>.</p> + <p>The function must be invoked with four arguments: <var title="">message</var>, <var title="">location</var>, <var title="">line</var>, and <var title="">col</var>.</p> <p>If the function returns true, then the error is <i title="concept-error-handled"><a href="#concept-error-handled">handled</a></i>. Otherwise, the error is <i title="concept-error-nothandled"><a href="#concept-error-nothandled">not handled</a></i>.</p> @@ -51751,8 +51751,9 @@ scripts associated with a <code><a href="#document">Document</a></code>, the user agent must <a href="#report-the-error">report the error</a> at the URL of the resource containing the script (as established when the <a href="#concept-script" title="concept-script">script</a> was <a href="#create-a-script" title="create a - script">created</a>), with the problematic line number in that - resource, in the script's <a href="#origin">origin</a>, using the <code title="handler-window-onerror"><a href="#handler-window-onerror">onerror</a></code> <a href="#event-handlers" title="event + script">created</a>), with the problematic position (line number + and column number) in that resource, in the script's + <a href="#origin">origin</a>, using the <code title="handler-window-onerror"><a href="#handler-window-onerror">onerror</a></code> <a href="#event-handlers" title="event handlers">event handler</a> of the <a href="#script-s-global-object">script's global object</a>. If the error is still <i title="concept-error-nothandled"><a href="#concept-error-nothandled">not handled</a></i> after this, then the error may be reported to the user.</p> @@ -52283,7 +52284,8 @@ <dl class="switch"><dt>If the attribute is the <code title="handler-window-onerror"><a href="#handler-window-onerror">onerror</a></code> attribute of the <code><a href="#window">Window</a></code> object</dt> - <dd>Let the function have three arguments, named <code title="">event</code>, <code title="">source</code>, and <code title="">lineno</code>.</dd> + <dd>Let the function have four arguments, named <code title="">event</code>, <code title="">source</code>, <code title="">lineno</code>, and <code title="">column</code>.</dd> + <dt>Otherwise</dt> @@ -52412,12 +52414,13 @@ <li><p>If <var title="">H</var>'s value is an <a href="#concept-handler-error" title="concept-handler-error">internal error value</a>, then set the <a href="#event-handlers" title="event handlers">event handler</a> to null and then <a href="#report-the-error">report the error</a> at the appropriate URL and with - the appropriate line number, as established when the error was - detected, in the <a href="#origin">origin</a> of the <code><a href="#document">Document</a></code> - of the node of the <a href="#event-handler-content-attributes" title="event handler content - attributes">event handler content attribute</a>, using the <code title="handler-window-onerror"><a href="#handler-window-onerror">onerror</a></code> <a href="#event-handlers" title="event - handlers">event handler</a> of the <code><a href="#window">Window</a></code> object of - that <code><a href="#document">Document</a></code>, and abort these steps.</li> + the appropriate position (line number and column number), as + established when the error was detected, in the <a href="#origin">origin</a> + of the <code><a href="#document">Document</a></code> of the node of the <a href="#event-handler-content-attributes" title="event + handler content attributes">event handler content attribute</a>, + using the <code title="handler-window-onerror"><a href="#handler-window-onerror">onerror</a></code> <a href="#event-handlers" title="event handlers">event handler</a> of the + <code><a href="#window">Window</a></code> object of that <code><a href="#document">Document</a></code>, and abort + these steps.</li> <li><p>Let <var title="">callback</var> be <var title="">H</var>'s value, the <code><a href="#function">Function</a></code> object that the <a href="#event-handlers" title="event
Received on Tuesday, 31 January 2012 23:36:45 UTC