W3C home > Mailing lists > Public > public-html-commits@w3.org > December 2008

html5/spec Overview.html,1.1720,1.1721

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 23 Dec 2008 20:33:39 +0000
To: public-html-commits@w3.org
Message-Id: <E1LFDwh-00078h-Vd@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv27429

Modified Files:
	Overview.html 
Log Message:
Redefine onerror='' handling to be reusable from other specs. (whatwg r2550)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1720
retrieving revision 1.1721
diff -u -d -r1.1720 -r1.1721
--- Overview.html	23 Dec 2008 03:41:57 -0000	1.1720
+++ Overview.html	23 Dec 2008 20:33:36 -0000	1.1721
@@ -28098,14 +28098,21 @@
 
   </ol><h5 id=runtime-script-errors><span class=secno>5.4.6.4 </span>Runtime script errors</h5><p><em>This section only applies to user agents that support
   scripting in general and ECMAScript in particular.</em><p>Whenever a runtime script error occurs in one of the scripts
-  associated with the document, the value of the <code title=handler-onerror><a href=#handler-onerror>onerror</a></code> <span>event handler DOM
-  attribute</span> of the <code><a href=#window>Window</a></code> object must be
-  processed, as follows:<dl class=switch><dt>If the value is a function</dt>
+  associated with the document, the user agent must <a href=#report-the-error>report the
+  error</a> using the <code title=handler-onerror><a href=#handler-onerror>onerror</a></code>
+  <a href=#event-handler-dom-attributes title="event handler DOM attributes">event handler DOM
+  attribute</a> of the <code><a href=#window>Window</a></code>. If the error is still
+  <i title="">not handled</i> after this, then the error should be
+  reported to the user.<p>The initial value of <code title=handler-onerror><a href=#handler-onerror>onerror</a></code>
+  must be <code>undefined</code>.</p><hr><p>When the user agent is required to <dfn id=report-the-error title="report the
+  error">report an error</dfn> <var title="">error</var> using the
+  attribute <var title="">onerror</var>, it must run these steps,
+  after which the error is either <i title="">handled</i> or <i title="">not handled</i>:<dl class=switch><dt>If the value of <var title="">onerror</var> is a function</dt>
 
    <dd>
 
-    <p>The function referenced by the <code title=handler-onerror><a href=#handler-onerror>onerror</a></code> attribute must be invoked
-    with three arguments, before notifying the user of the error.</p>
+    <p>The function referenced by the <var title="">onerror</var>
+    attribute must be invoked with three arguments.</p>
 
     <p>The three arguments passed to the function are all
     <code>DOMString</code>s; the first must give the message that the
@@ -28114,14 +28121,13 @@
     occurred, and the third must give the line number in that resource
     on which the error occurred.</p>
 
-    <p>If the function returns false, then the error should not be
-    reported to the user. Otherwise, if the function returns another
-    value (or does not return at all), the error should be reported to
-    the user.</p>
+    <p>If the function returns false, then the error is <i title="">handled</i>. Otherwise, the error is <i title="">not
+    handled</i>.</p>
 
     <p>Any exceptions thrown or errors caused by this function must be
     reported to the user immediately after the error that the function
-    was called for, without calling the function again.</p>
+    was called for, without using the <a href=#report-the-error title="report the
+    error">report an error</a> algorithm again.</p>
 
    </dd>
 
@@ -28129,7 +28135,7 @@
 
    <dd>
 
-    <p>The error should not reported to the user.</p>
+    <p>The error is <i title="">handled</i>.</p>
 
    </dd>
 
@@ -28137,12 +28143,11 @@
 
    <dd>
 
-    <p>The error should be reported to the user.</p>
+    <p>The error is <i title="">not handled</i>.</p>
 
    </dd>
 
-  </dl><p>The initial value of <code title=handler-onerror><a href=#handler-onerror>onerror</a></code>
-  must be <code>undefined</code>.<h3 id=user-prompts><span class=secno>5.5 </span>User prompts</h3><h4 id=simple-dialogs><span class=secno>5.5.1 </span>Simple dialogs</h4><p>The <dfn id=dom-alert title=dom-alert><code>alert(<var title="">message</var>)</code></dfn> method, when invoked, must show
+  </dl><h3 id=user-prompts><span class=secno>5.5 </span>User prompts</h3><h4 id=simple-dialogs><span class=secno>5.5.1 </span>Simple dialogs</h4><p>The <dfn id=dom-alert title=dom-alert><code>alert(<var title="">message</var>)</code></dfn> method, when invoked, must show
   the given <var title="">message</var> to the user. The user agent
   may make the method wait for the user to acknowledge the message
   before returning; if so, the user agent must <a href=#pause>pause</a>
Received on Tuesday, 23 December 2008 20:33:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 December 2008 20:33:49 GMT