spec/Overview.html 1.1978 2807 Simplify window.onerror. (whatwg r2807)

Simplify window.onerror. (whatwg r2807)

4.4.1 The body element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1978.html#the-body-element
HTMLBodyElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1978.html#htmlbodyelement
onerror
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1978.html#handler-window-onerror
event handler attributes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1978.html#event-handler-attributes-0
Window
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1978.html#window
report an error
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1978.html#report-the-error
Event handler content attributes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1978.html#event-handler-content-attributes

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1977&r2=1.1978&f=h
http://html5.org/tools/web-apps-tracker?from=2806&to=2807

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1977
retrieving revision 1.1978
diff -u -d -r1.1977 -r1.1978
--- Overview.html 13 Feb 2009 01:59:26 -0000 1.1977
+++ Overview.html 13 Feb 2009 02:20:04 -0000 1.1978
@@ -11675,7 +11675,7 @@
    <dd>
 <pre class=idl>interface <dfn id=htmlbodyelement>HTMLBodyElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
            attribute <a href=#function>Function</a> <a href=#handler-window-onbeforeunload title=handler-window-onbeforeunload>onbeforeunload</a>;
-           attribute any     <!--      --> <a href=#handler-window-onerror title=handler-window-onerror>onerror</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onerror title=handler-window-onerror>onerror</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onhashchange title=handler-window-onhashchange>onhashchange</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onload title=handler-window-onload>onload</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onmessage title=handler-window-onmessage>onmessage</a>;
@@ -36662,7 +36662,7 @@
            attribute <a href=#function>Function</a> <a href=#handler-ondragover title=handler-ondragover>ondragover</a>;
            attribute <a href=#function>Function</a> <a href=#handler-ondragstart title=handler-ondragstart>ondragstart</a>;
            attribute <a href=#function>Function</a> <a href=#handler-ondrop title=handler-ondrop>ondrop</a>;
-           attribute any     <!--      --> <a href=#handler-window-onerror title=handler-window-onerror>onerror</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onerror title=handler-window-onerror>onerror</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onfocus title=handler-onfocus>onfocus</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onhashchange title=handler-window-onhashchange>onhashchange</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onkeydown title=handler-onkeydown>onkeydown</a>;
@@ -38171,10 +38171,6 @@
   unless otherwise specified, an event handler attribute must be set
   to null.</p>
 
-  <p class=note>Some event handler attributes allow other values and
-  have other initial values, in particular the <code title=handler-window-onerror><a href=#handler-window-onerror>onerror</a></code> event handler
-  attribute on the <code><a href=#window>Window</a></code> object.</p>
-
   <p>Event handler attributes are exposed in one or two ways.</p>
 
   <p>The first way, common to all event handler attributes, is as an
@@ -38276,9 +38272,8 @@
   <hr>
 
   <p>All event handler attributes on an element, whether set to null
-  or to a <code><a href=#function>Function</a></code> object<!-- or to anything else, in the
-  case of 'onerror' -->, must be registered as event listeners on the
-  element, as if the <code title=dom-EventTarget-addEventListenerNS>addEventListenerNS()</code>
+  or to a <code><a href=#function>Function</a></code> object, must be registered as event
+  listeners on the element, as if the <code title=dom-EventTarget-addEventListenerNS>addEventListenerNS()</code>
   method on the <code>Element</code> object's <code>EventTarget</code>
   interface had been invoked when the event handler attribute's
   element or object was created, with the event type (<var title=dom-event-type>type</var> argument) equal to the type
@@ -38568,10 +38563,6 @@
     <p>Must be invoked whenever an <code title=event-error><a href=#event-error>error</a></code> event is targeted at or bubbles
     through the object.</p>
 
-    <p>Unlike other event handler attributes, the <code title=handler-window-onerror><a href=#handler-window-onerror>onerror</a></code> event handler attribute can
-    have any value. The initial value of <code title=handler-window-onerror><a href=#handler-window-onerror>onerror</a></code> must be
-    <code>undefined</code>.</p>
-
     <p class=note>The <code title=handler-window-onerror><a href=#handler-window-onerror>onerror</a></code>
     handler is also used for <a href=#runtime-script-errors>reporting script errors</a>.</p>
 
@@ -38761,15 +38752,7 @@
 
    </dd>
 
-   <dt>If the value is <code>null</code></dt>
-
-   <dd>
-
-    <p>The error is <i title="">handled</i>.</p>
-
-   </dd>
-
-   <dt>If the value is anything else</dt>
+   <dt>Otherwise</dt>
 
    <dd>

Received on Friday, 13 February 2009 02:24:04 UTC