HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2933[Gecko] [Internet Explorer] [Opera] [Webkit] Expose event handler DOM attributes on Document objects. (credit: sp) (bug 6474)2009-03-31 03:53
@@ -6855,20 +6855,50 @@ interface <dfn>HTMLDocument</dfn> {
            attribute DOMString <span title="dom-document-designMode">designMode</span>;
   boolean <span title="dom-document-execCommand">execCommand</span>(in DOMString commandId);
   boolean <span title="dom-document-execCommand">execCommand</span>(in DOMString commandId, in boolean showUI);
   boolean <span title="dom-document-execCommand">execCommand</span>(in DOMString commandId, in boolean showUI, in DOMString value);
   boolean <span title="dom-document-queryCommandEnabled">queryCommandEnabled</span>(in DOMString commandId);
   boolean <span title="dom-document-queryCommandIndeterm">queryCommandIndeterm</span>(in DOMString commandId);
   boolean <span title="dom-document-queryCommandState">queryCommandState</span>(in DOMString commandId);
   boolean <span title="dom-document-queryCommandSupported">queryCommandSupported</span>(in DOMString commandId);
   DOMString <span title="dom-document-queryCommandValue">queryCommandValue</span>(in DOMString commandId);
   readonly attribute <span>HTMLCollection</span> <span title="dom-document-commands">commands</span>;
+
+  // <span>event handler DOM attributes</span>
+           attribute <span>Function</span> <span title="handler-onabort">onabort</span>;
+           attribute <span>Function</span> <span title="handler-onblur">onblur</span>;
+           attribute <span>Function</span> <span title="handler-onchange">onchange</span>;
+           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 <span>Function</span> <span title="handler-onerror">onerror</span>;
+           attribute <span>Function</span> <span title="handler-onfocus">onfocus</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-onload">onload</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>;
+           attribute <span>Function</span> <span title="handler-onmouseover">onmouseover</span>;
+           attribute <span>Function</span> <span title="handler-onmouseup">onmouseup</span>;
+           attribute <span>Function</span> <span title="handler-onmousewheel">onmousewheel</span>;
+           attribute <span>Function</span> <span title="handler-onscroll">onscroll</span>;
+           attribute <span>Function</span> <span title="handler-onselect">onselect</span>;
+           attribute <span>Function</span> <span title="handler-onsubmit">onsubmit</span>;
 };</pre>
 
   <p>Since the <code>HTMLDocument</code> interface holds methods and
   attributes related to a number of disparate features, the members of
   this interface are described in various different sections.</p>
 
 
   <h4>Security</h4>
 
   <p>User agents <span class="impl">must</span> raise a
@@ -46341,26 +46371,26 @@ interface <dfn>Function</dfn> {
   method is the object's callback.</p>
 
   <p class="note">In JavaScript, any <code title="">Function</code>
   object implements this interface.</p>
 
   </div>
 
 
   <div class="impl">
 
-  <h5>Event handler attributes on elements and on <code>Window</code> objects</h5>
+  <h5>Event handler attributes on elements, <code>Document</code> objects, and <code>Window</code> objects</h5>
 
   <p>The following are the event handler attributes that must be
   supported by all <span>HTML elements</span>, as both content
-  attributes and DOM attributes, and on <code>Window</code> objects,
-  as DOM attributes:</p>
+  attributes and DOM attributes, and on <code>Document</code> and
+  <code>Window</code> objects, as DOM attributes:</p>
 
   <dl>
 
    <dt><dfn title="handler-onabort"><code>onabort</code></dfn></dt>
 
    <dd><p>Must be invoked whenever an <code
    title="event-abort">abort</code> event is targeted at or bubbles
    through the element or object.</p></dd>
 
 <!--
@@ -46544,22 +46574,22 @@ interface <dfn>Function</dfn> {
    <dd><p>Must be invoked whenever a <code
    title="event-submit">submit</code> event is targeted at or bubbles
    through the element or object.</p></dd>
 
   </dl>
 
   <hr>
 
   <p>The following are the event handler attributes that must be
   supported by all <span>HTML elements</span> other than
-  <code>body</code>, as both content attributes and DOM
-  attributes:</p>
+  <code>body</code>, as both content attributes and DOM attributes,
+  and on <code>Document</code> objects, as DOM attributes:</p>
 
   <dl>
 
    <dt><dfn title="handler-onerror"><code>onerror</code></dfn></dt>
 
    <dd><p>Must be invoked whenever a <code
    title="event-error">error</code> event is targeted at or bubbles
    through the element.</p></dd>
 
    <dt><dfn title="handler-onload"><code>onload</code></dfn></dt>

|