HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2807

File a bug

SVNBugCommentTime (UTC)
2807Simplify window.onerror.2009-02-13 02:19
Index: source
===================================================================
--- source	(revision 2806)
+++ source	(revision 2807)
@@ -11367,7 +11367,7 @@
    <dd>
 <pre class="idl">interface <dfn>HTMLBodyElement</dfn> : <span>HTMLElement</span> {
            attribute <span>Function</span> <span title="handler-window-onbeforeunload">onbeforeunload</span>;
-           attribute any     <!--      --> <span title="handler-window-onerror">onerror</span>;
+           attribute <span>Function</span> <span title="handler-window-onerror">onerror</span>;
            attribute <span>Function</span> <span title="handler-window-onhashchange">onhashchange</span>;
            attribute <span>Function</span> <span title="handler-window-onload">onload</span>;
            attribute <span>Function</span> <span title="handler-window-onmessage">onmessage</span>;
@@ -39131,7 +39131,7 @@
            attribute <span>Function</span> <span title="handler-ondragover">ondragover</span>;
            attribute <span>Function</span> <span title="handler-ondragstart">ondragstart</span>;
            attribute <span>Function</span> <span title="handler-ondrop">ondrop</span>;
-           attribute any     <!--      --> <span title="handler-window-onerror">onerror</span>;
+           attribute <span>Function</span> <span title="handler-window-onerror">onerror</span>;
            attribute <span>Function</span> <span title="handler-onfocus">onfocus</span>;
            attribute <span>Function</span> <span title="handler-window-onhashchange">onhashchange</span>;
            attribute <span>Function</span> <span title="handler-onkeydown">onkeydown</span>;
@@ -40740,11 +40740,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">onerror</code> event handler
-  attribute on the <code>Window</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
@@ -40854,9 +40849,8 @@
   <hr>
 
   <p>All event handler attributes on an element, whether set to null
-  or to a <code>Function</code> object<!-- or to anything else, in the
-  case of 'onerror' -->, must be registered as event listeners on the
-  element, as if the <code
+  or to a <code>Function</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
@@ -41182,12 +41176,6 @@
     title="event-error">error</code> event is targeted at or bubbles
     through the object.</p>
 
-    <p>Unlike other event handler attributes, the <code
-    title="handler-window-onerror">onerror</code> event handler attribute can
-    have any value. The initial value of <code
-    title="handler-window-onerror">onerror</code> must be
-    <code>undefined</code>.</p>
-
     <p class="note">The <code title="handler-window-onerror">onerror</code>
     handler is also used for <a
     href="#runtime-script-errors">reporting script errors</a>.</p>
@@ -41410,18 +41398,10 @@
 
    </dd>
 
-   <dt>If the value is <code>null</code></dt>
+   <dt>Otherwise</dt>
 
    <dd>
 
-    <p>The error is <i title="">handled</i>.</p>
-
-   </dd>
-
-   <dt>If the value is anything else</dt>
-
-   <dd>
-
     <p>The error is <i title="">not handled</i>.</p>
 
    </dd>

|