Short URL: http://html5.org/r/6957
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 6957 | 13319 | 2012-01-31 23:36 |
Index: source
===================================================================
--- source (revision 6956)
+++ source (revision 6957)
@@ -78942,8 +78942,8 @@
entry-point</i>.</p>
<p>Otherwise, <span>report the error</span> at the script source
- URL, with the problematic line number, in the script's
- <span>origin</span>, using the <code
+ URL, with the problematic position (line number and column
+ number), in the script's <span>origin</span>, using the <code
title="handler-window-onerror">onerror</code> <span title="event
handlers">event handler</span> of the <span>script's global
object</span>. If the error is still <i
@@ -79046,8 +79046,8 @@
<p>When the user agent is required to <dfn title="report the
error">report an error</dfn> at a particular <span>URL</span> <var
- title="">location</var> with a particular line number <var
- title="">line</var> in a particular origin <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 <span title="event handlers">event
handler</span> <var title="">onerror</var>, it must run these steps,
after which the error is either <dfn
@@ -79075,9 +79075,9 @@
<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">handled</i>. Otherwise, the error is
@@ -79113,8 +79113,9 @@
<span>report the error</span> at the URL of the resource containing
the script (as established when the <span
title="concept-script">script</span> was <span title="create a
- script">created</span>), with the problematic line number in that
- resource, in the script's <span>origin</span>, using the <code
+ script">created</span>), with the problematic position (line number
+ and column number) in that resource, in the script's
+ <span>origin</span>, using the <code
title="handler-window-onerror">onerror</code> <span title="event
handlers">event handler</span> of the <span>script's global
object</span>. If the error is still <i
@@ -79810,9 +79811,11 @@
title="handler-window-onerror">onerror</code> attribute of the
<code>Window</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>
+ <!-- /column/ is new as of 2012; see https://www.w3.org/Bugs/Public/show_bug.cgi?id=13319 -->
<dt>Otherwise</dt>
@@ -79983,13 +79986,14 @@
title="concept-handler-error">internal error value</span>, then set
the <span title="event handlers">event handler</span> to null and
then <span>report the error</span> at the appropriate URL and with
- the appropriate line number, as established when the error was
- detected, in the <span>origin</span> of the <code>Document</code>
- of the node of the <span title="event handler content
- attributes">event handler content attribute</span>, using the <code
- title="handler-window-onerror">onerror</code> <span title="event
- handlers">event handler</span> of the <code>Window</code> object of
- that <code>Document</code>, and abort these steps.</p></li>
+ the appropriate position (line number and column number), as
+ established when the error was detected, in the <span>origin</span>
+ of the <code>Document</code> of the node of the <span title="event
+ handler content attributes">event handler content attribute</span>,
+ using the <code title="handler-window-onerror">onerror</code> <span
+ title="event handlers">event handler</span> of the
+ <code>Window</code> object of that <code>Document</code>, and abort
+ these steps.</p></li>
<li><p>Let <var title="">callback</var> be <var title="">H</var>'s
value, the <code>Function</code> object that the <span title="event
@@ -87857,9 +87861,10 @@
worker's scripts, if the error did not occur while handling a
previous script error, the user agent must <span>report the
error</span> at the <span>URL</span> of the resource that contained
- the script, with the line number where the error occurred, in the
- <span>origin</span> of the scripts running in the worker, using the
- <code>WorkerGlobalScope</code> object's <code
+ the script, with the position (line number and column number) where
+ the error occurred, in the <span>origin</span> of the scripts
+ running in the worker, using the <code>WorkerGlobalScope</code>
+ object's <code
title="handler-WorkerGlobalScope-onerror">onerror</code> attribute.
<!--END complete-->
<a href="#refsHTML">[HTML]</a>