HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2807Simplify window.onerror.2009-02-13 02:19
@@ -11360,21 +11360,21 @@ not-slash     = %x0000-002E / %x0030-%10FFFF
    <dd><code title="handler-window-onoffline">onoffline</code></dd>
    <dd><code title="handler-window-ononline">ononline</code></dd>
    <dd><code title="handler-window-onpopstate">onpopstate</code></dd>
    <dd><code title="handler-window-onresize">onresize</code></dd>
    <dd><code title="handler-window-onstorage">onstorage</code></dd>
    <dd><code title="handler-window-onunload">onunload</code></dd>
    <dt>DOM interface:</dt>
    <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>;
            attribute <span>Function</span> <span title="handler-window-onoffline">onoffline</span>;
            attribute <span>Function</span> <span title="handler-window-ononline">ononline</span>;
            attribute <span>Function</span> <span title="handler-window-onpopstate">onpopstate</span>;
            attribute <span>Function</span> <span title="handler-window-onresize">onresize</span>;
            attribute <span>Function</span> <span title="handler-window-onstorage">onstorage</span>;
            attribute <span>Function</span> <span title="handler-window-onunload">onunload</span>;
 };</pre>
@@ -39124,21 +39124,21 @@ interface <dfn>Window</dfn> {
            attribute <span>Function</span> <span title="handler-onclick">onclick</span>;
            attribute <span>Function</span> <span title="handler-oncontextmenu">oncontextmenu</span>;
            attribute <span>Function</span> <span title="handler-ondblclick">ondblclick</span>;
            attribute <span>Function</span> <span title="handler-ondrag">ondrag</span>;
            attribute <span>Function</span> <span title="handler-ondragend">ondragend</span>;
            attribute <span>Function</span> <span title="handler-ondragenter">ondragenter</span>;
            attribute <span>Function</span> <span title="handler-ondragleave">ondragleave</span>;
            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>;
            attribute <span>Function</span> <span title="handler-onkeypress">onkeypress</span>;
            attribute <span>Function</span> <span title="handler-onkeyup">onkeyup</span>;
            attribute <span>Function</span> <span title="handler-window-onload">onload</span>;
            attribute <span>Function</span> <span title="handler-window-onmessage">onmessage</span>;
            attribute <span>Function</span> <span title="handler-onmousedown">onmousedown</span>;
            attribute <span>Function</span> <span title="handler-onmousemove">onmousemove</span>;
            attribute <span>Function</span> <span title="handler-onmouseout">onmouseout</span>;
@@ -40733,25 +40733,20 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
   <p>Many objects can have <dfn>event handler attributes</dfn>
   specified. These act as bubbling event listeners for the element on
   which they are specified.</p>
 
   <p>An <span title="event handler attributes">event handler
   attribute</span>, unless otherwise specified, can either have the
   value null or be set to a <code>Function</code> object. Initially,
   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
   <span title="event handler DOM attributes">event handler DOM
   attribute</span>.</p>
 
   <p>The second way is as an <span title="event handler content
   attributes">event handler content attribute</span>. Event handlers on
   <span>HTML elements</span> and some of the event handlers on
   <code>Window</code> objects are exposed in this way.</p>
@@ -40847,23 +40842,22 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
 
   <p class="note">Removing an event handler content attribute does not
   reset the corresponding event handler attribute.</p>
   <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A...%3Cbody%20onload%3D%22w(%27pass%27)%22%3E%0A%3Cscript%3Edocument.body.removeAttribute(%27onload%27)%3B%3C%2Fscript%3E -->
 
   <p class="XXX">How do we allow non-JS event handlers?</p>
 
   <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
   element or object was created, with the event type (<var
   title="dom-event-type">type</var> argument) equal to the type
   described for the event handler attribute in the list above, the
   namespace (<var title="dom-event-namespaceURI">namespaceURI</var>
   argument) set to null, the listener set to be a target and bubbling
   phase listener (<var title="dom-event-useCapture">useCapture</var>
   argument set to false), the event group set to the default group
@@ -41175,26 +41169,20 @@ interface <dfn>Function</dfn> {
    through the object.</p></dd>
 
    <dt><dfn title="handler-window-onerror"><code>onerror</code></dfn></dt>
 
    <dd>
 
     <p>Must be invoked whenever an <code
     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>
 
    </dd>
 
    <dt><dfn title="handler-window-onhashchange"><code>onhashchange</code></dfn></dt> <!-- new -->
 
    <dd><p>Must be invoked whenever a <code
    title="event-hashchange">hashchange</code> event is targeted at or bubbles
@@ -41403,29 +41391,21 @@ interface <dfn>Function</dfn> {
     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 using the <span title="report the
     error">report an error</span> algorithm again.</p>
 
    </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>
 
     <p>The error is <i title="">not handled</i>.</p>
 
    </dd>
 
   </dl>
 
 

|