Permalink
Browse files

[giow] (2) Expose event handler DOM attributes on Document objects. (…

…credit: sp) (bug 6474)

git-svn-id: http://svn.whatwg.org/webapps@2933 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 061dac3 commit 7d47d8368323aab00d11c5ab0eee36373343f450 @Hixie Hixie committed Mar 31, 2009
Showing with 71 additions and 11 deletions.
  1. +36 −6 index
  2. +35 −5 source
View
42 index
@@ -696,7 +696,7 @@
<li><a href=#events><span class=secno>5.5.6 </span>Events</a>
<ol>
<li><a href=#event-handler-attributes><span class=secno>5.5.6.1 </span>Event handler attributes</a></li>
- <li><a href=#event-handler-attributes-on-elements-and-on-window-objects><span class=secno>5.5.6.2 </span>Event handler attributes on elements and on <code>Window</code> objects</a></li>
+ <li><a href=#event-handler-attributes-on-elements,-document-objects,-and-window-objects><span class=secno>5.5.6.2 </span>Event handler attributes on elements, <code>Document</code> objects, and <code>Window</code> objects</a></li>
<li><a href=#event-firing><span class=secno>5.5.6.3 </span>Event firing</a></li>
<li><a href=#events-and-the-window-object><span class=secno>5.5.6.4 </span>Events and the <code>Window</code> object</a></li>
<li><a href=#runtime-script-errors><span class=secno>5.5.6.5 </span>Runtime script errors</a></ol></ol></li>
@@ -6784,6 +6784,36 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
boolean <a href=#dom-document-querycommandsupported title=dom-document-queryCommandSupported>queryCommandSupported</a>(in DOMString commandId);
DOMString <a href=#dom-document-querycommandvalue title=dom-document-queryCommandValue>queryCommandValue</a>(in DOMString commandId);
readonly attribute <a href=#htmlcollection-0>HTMLCollection</a> <a href=#dom-document-commands title=dom-document-commands>commands</a>;
+
+ // <a href=#event-handler-dom-attributes>event handler DOM attributes</a>
+ attribute <a href=#function>Function</a> <a href=#handler-onabort title=handler-onabort>onabort</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onblur title=handler-onblur>onblur</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onchange title=handler-onchange>onchange</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onclick title=handler-onclick>onclick</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-oncontextmenu title=handler-oncontextmenu>oncontextmenu</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-ondblclick title=handler-ondblclick>ondblclick</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-ondrag title=handler-ondrag>ondrag</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-ondragend title=handler-ondragend>ondragend</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-ondragenter title=handler-ondragenter>ondragenter</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-ondragleave title=handler-ondragleave>ondragleave</a>;
+ 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 <a href=#function>Function</a> <a href=#handler-onerror title=handler-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-onkeydown title=handler-onkeydown>onkeydown</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onkeypress title=handler-onkeypress>onkeypress</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onkeyup title=handler-onkeyup>onkeyup</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onload title=handler-onload>onload</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onmousedown title=handler-onmousedown>onmousedown</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onmousemove title=handler-onmousemove>onmousemove</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onmouseout title=handler-onmouseout>onmouseout</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onmouseover title=handler-onmouseover>onmouseover</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onmouseup title=handler-onmouseup>onmouseup</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onmousewheel title=handler-onmousewheel>onmousewheel</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onscroll title=handler-onscroll>onscroll</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onselect title=handler-onselect>onselect</a>;
+ attribute <a href=#function>Function</a> <a href=#handler-onsubmit title=handler-onsubmit>onsubmit</a>;
};</pre>
<p>Since the <code><a href=#htmldocument>HTMLDocument</a></code> interface holds methods and
@@ -40845,12 +40875,12 @@ interface <dfn id=function>Function</dfn> {
<div class=impl>
- <h5 id=event-handler-attributes-on-elements-and-on-window-objects><span class=secno>5.5.6.2 </span>Event handler attributes on elements and on <code><a href=#window>Window</a></code> objects</h5>
+ <h5 id=event-handler-attributes-on-elements,-document-objects,-and-window-objects><span class=secno>5.5.6.2 </span>Event handler attributes on elements, <code>Document</code> objects, and <code><a href=#window>Window</a></code> objects</h5>
<p>The following are the event handler attributes that must be
supported by all <a href=#html-elements>HTML elements</a>, as both content
- attributes and DOM attributes, and on <code><a href=#window>Window</a></code> objects,
- as DOM attributes:</p>
+ attributes and DOM attributes, and on <code>Document</code> and
+ <code><a href=#window>Window</a></code> objects, as DOM attributes:</p>
<dl><dt><dfn id=handler-onabort title=handler-onabort><code>onabort</code></dfn></dt>
@@ -41016,8 +41046,8 @@ interface <dfn id=function>Function</dfn> {
</dl><hr><p>The following are the event handler attributes that must be
supported by all <a href=#html-elements>HTML elements</a> other than
- <code><a href=#the-body-element>body</a></code>, as both content attributes and DOM
- attributes:</p>
+ <code><a href=#the-body-element>body</a></code>, as both content attributes and DOM attributes,
+ and on <code>Document</code> objects, as DOM attributes:</p>
<dl><dt><dfn id=handler-onerror title=handler-onerror><code>onerror</code></dfn></dt>
View
40 source
@@ -6862,6 +6862,36 @@ interface <dfn>HTMLDocument</dfn> {
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
@@ -46348,12 +46378,12 @@ interface <dfn>Function</dfn> {
<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>
@@ -46551,8 +46581,8 @@ interface <dfn>Function</dfn> {
<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>

0 comments on commit 7d47d83

Please sign in to comment.