Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) clean up some stuff around event handler attributes
git-svn-id: http://svn.whatwg.org/webapps@3128 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 26, 2009
1 parent 65f095a commit 71a0c2e
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 54 deletions.
55 changes: 30 additions & 25 deletions index
Expand Up @@ -39,7 +39,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 25 May 2009</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 26 May 2009</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<dl><dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -12419,11 +12419,11 @@ not-slash = %x0000-002E / %x0030-%10FFFF
attributes</a> of the <code><a href=#window>Window</a></code> object. It also mirrors
their <a href=#event-handler-dom-attributes>event handler DOM attributes</a>.</p>

<p>The <code title=handler-window-onerror><a href=#handler-window-onerror>onerror</a></code> and <code title=handler-window-onload><a href=#handler-window-onload>onload</a></code> <a href=#event-handler-attributes-0>event handler
<p>The <code title=handler-window-onblur><a href=#handler-window-onblur>onblur</a></code>, <code title=handler-window-onerror><a href=#handler-window-onerror>onerror</a></code>, <code title=handler-window-onfocus><a href=#handler-window-onfocus>onfocus</a></code>, and <code title=handler-window-onload><a href=#handler-window-onload>onload</a></code> <a href=#event-handler-attributes-0>event handler
attributes</a> of the <code><a href=#window>Window</a></code> object, exposed on the
<code><a href=#the-body-element>body</a></code> element, shadow the generic <code title=handler-onerror><a href=#handler-onerror>onerror</a></code> and <code title=handler-onload><a href=#handler-onload>onload</a></code> <a href=#event-handler-attributes-0>event handler
attributes</a> normally supported by <a href=#html-elements>HTML
elements</a>.</p>
<code><a href=#the-body-element>body</a></code> element, shadow the generic <a href=#event-handler-attributes-0>event handler
attributes</a> with the same names normally supported by
<a href=#html-elements>HTML elements</a>.</p>

<p class=example>Thus, for example, a bubbling <code title=event-error><a href=#event-error>error</a></code> event fired on a child of <a href=#the-body-element-0>the
body element</a> of a <code>Document</code> would first trigger
Expand All @@ -12434,13 +12434,12 @@ not-slash = %x0000-002E / %x0030-%10FFFF
attribute</a> on the <code><a href=#the-body-element>body</a></code> element. This is because
the event would bubble from the target, to the <code><a href=#the-body-element>body</a></code>, to
the <code><a href=#the-html-element>html</a></code>, to the <code>Document</code>, to the
<code><a href=#window>Window</a></code>, and the <a href=#event-handler-attributes-0 title="event handler attributes">event handler attribute</a> on
the <code><a href=#the-body-element>body</a></code> is watching the <code><a href=#window>Window</a></code> not the
<code><a href=#the-body-element>body</a></code>. A regular event listener attached to the
<code><a href=#the-body-element>body</a></code> using <code title="">addEventListener()</code>,
however, would fire when the event bubbled through the
<code><a href=#the-body-element>body</a></code> and not when it reaches the <code><a href=#window>Window</a></code>
object.</p>
<code><a href=#window>Window</a></code>, and the <a href=#event-handler-attributes-0 title="event handler
attributes">event handler attribute</a> on the <code><a href=#the-body-element>body</a></code>
is watching the <code><a href=#window>Window</a></code> not the <code><a href=#the-body-element>body</a></code>. A
regular event listener attached to the <code><a href=#the-body-element>body</a></code> using <code title="">addEventListener()</code>, however, would fire when the
event bubbled through the <code><a href=#the-body-element>body</a></code> and not when it reaches
the <code><a href=#window>Window</a></code> object.</p>


<h4 id=the-section-element><span class=secno>4.4.2 </span>The <dfn><code>section</code></dfn> element</h4>
Expand Down Expand Up @@ -47909,10 +47908,12 @@ interface <dfn id=function>Function</dfn> {

<h5 id=event-handler-attributes-on-elements,-document-objects,-and-window-objects><span class=secno>6.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 <a href=#event-handler-attributes-0>event handler attributes</a> (and their corresponding <a href=#event-handler-event-type title="event handler event type">event handler event types</a>)
that must be supported by all <a href=#html-elements>HTML elements</a>, as both
content attributes and DOM attributes, and on <code>Document</code>
and <code><a href=#window>Window</a></code> objects, as DOM attributes.</p>
<p>The following are the <a href=#event-handler-attributes-0>event handler attributes</a> (and
their corresponding <a href=#event-handler-event-type title="event handler event type">event
handler event types</a>) that must be supported by all <a href=#html-elements>HTML
elements</a>, as both content attributes and DOM attributes, and
on <code>Document</code> and <code><a href=#window>Window</a></code> objects, as DOM
attributes.</p>

<table><thead><tr><th><a href=#event-handler-attributes-0 title="event handler attributes">event handler attribute</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-onabort title=handler-onabort><code>onabort</code></dfn> <td> <code title=event-abort><a href=#event-abort>abort</a></code>
Expand Down Expand Up @@ -47972,21 +47973,25 @@ interface <dfn id=function>Function</dfn> {
<!--<tr><td><dfn title="handler-oncopy"><code>oncopy</code></dfn> <td> <code title="event-copy">copy</code>--> <!-- widely used -->
<!--<tr><td><dfn title="handler-onpaste"><code>onpaste</code></dfn> <td> <code title="event-paste">paste</code>--> <!-- widely used -->
<!--<tr><td><dfn title="handler-onselectstart"><code>onselectstart</code></dfn> <td> <code title="event-selectstart">selectstart</code>--> <!-- widely used -->
</table><hr><p>The following are the <a href=#event-handler-attributes-0>event handler attributes</a> (and their corresponding <a href=#event-handler-event-type title="event handler event type">event handler event types</a>)
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,
and on <code>Document</code> objects, as DOM attributes:</p>
</table><hr><p>The following are the <a href=#event-handler-attributes-0>event handler attributes</a> (and
their corresponding <a href=#event-handler-event-type title="event handler event type">event
handler event types</a>) 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, and on <code>Document</code> objects,
as DOM attributes:</p>

<table><thead><tr><th><a href=#event-handler-attributes-0 title="event handler attributes">event handler attribute</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-onblur title=handler-onblur><code>onblur</code></dfn> <td> <code title=event-blur>blur</code> <!-- widely used -->
<tr><td><dfn id=handler-onerror title=handler-onerror><code>onerror</code></dfn> <td> <code title=event-error><a href=#event-error>error</a></code>
<tr><td><dfn id=handler-onfocus title=handler-onfocus><code>onfocus</code></dfn> <td> <code title=event-focus>focus</code> <!-- widely used -->
<tr><td><dfn id=handler-onload title=handler-onload><code>onload</code></dfn> <td> <code title=event-load><a href=#event-load>load</a></code>
</table><hr><p>The following are the <a href=#event-handler-attributes-0>event handler attributes</a> (and their corresponding <a href=#event-handler-event-type title="event handler event type">event handler event types</a>)
that must be supported by <code><a href=#window>Window</a></code> objects, as DOM
attributes on the <code><a href=#window>Window</a></code> object, and with corresponding
content attributes and DOM attributes exposed on the
<code><a href=#the-body-element>body</a></code> element:</p>
</table><hr><p>The following are the <a href=#event-handler-attributes-0>event handler attributes</a> (and
their corresponding <a href=#event-handler-event-type title="event handler event type">event
handler event types</a>) that must be supported by
<code><a href=#window>Window</a></code> objects, as DOM attributes on the
<code><a href=#window>Window</a></code> object, and with corresponding content
attributes and DOM attributes exposed on the <code><a href=#the-body-element>body</a></code>
element:</p>

<table><thead><tr><th><a href=#event-handler-attributes-0 title="event handler attributes">event handler attribute</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-window-onafterprint title=handler-window-onafterprint><code>onafterprint</code></dfn> <td> <code title=event-afterprint>afterprint</code>
Expand Down
61 changes: 32 additions & 29 deletions source
Expand Up @@ -13234,14 +13234,14 @@ not-slash = %x0000-002E / %x0030-%10FFFF
attributes</span> of the <code>Window</code> object. It also mirrors
their <span>event handler DOM attributes</span>.</p>

<p>The <code title="handler-window-onerror">onerror</code> and <code
<p>The <code title="handler-window-onblur">onblur</code>, <code
title="handler-window-onerror">onerror</code>, <code
title="handler-window-onfocus">onfocus</code>, and <code
title="handler-window-onload">onload</code> <span>event handler
attributes</span> of the <code>Window</code> object, exposed on the
<code>body</code> element, shadow the generic <code
title="handler-onerror">onerror</code> and <code
title="handler-onload">onload</code> <span>event handler
attributes</span> normally supported by <span>HTML
elements</span>.</p>
<code>body</code> element, shadow the generic <span>event handler
attributes</span> with the same names normally supported by
<span>HTML elements</span>.</p>

<p class="example">Thus, for example, a bubbling <code
title="event-error">error</code> event fired on a child of <span>the
Expand All @@ -13254,13 +13254,13 @@ not-slash = %x0000-002E / %x0030-%10FFFF
attribute</span> on the <code>body</code> element. This is because
the event would bubble from the target, to the <code>body</code>, to
the <code>html</code>, to the <code>Document</code>, to the
<code>Window</code>, and the <span title="event handler attributes">event handler attribute</span> on
the <code>body</code> is watching the <code>Window</code> not the
<code>body</code>. A regular event listener attached to the
<code>body</code> using <code title="">addEventListener()</code>,
however, would fire when the event bubbled through the
<code>body</code> and not when it reaches the <code>Window</code>
object.</p>
<code>Window</code>, and the <span title="event handler
attributes">event handler attribute</span> on the <code>body</code>
is watching the <code>Window</code> not the <code>body</code>. A
regular event listener attached to the <code>body</code> using <code
title="">addEventListener()</code>, however, would fire when the
event bubbled through the <code>body</code> and not when it reaches
the <code>Window</code> object.</p>


<h4>The <dfn><code>section</code></dfn> element</h4>
Expand Down Expand Up @@ -54604,11 +54604,12 @@ interface <dfn>Function</dfn> {

<h5>Event handler attributes on elements, <code>Document</code> objects, and <code>Window</code> objects</h5>

<p>The following are the <span>event handler attributes</span> (and their corresponding <span
title="event handler event type">event handler event types</span>)
that must be supported by all <span>HTML elements</span>, as both
content attributes and DOM attributes, and on <code>Document</code>
and <code>Window</code> objects, as DOM attributes.</p>
<p>The following are the <span>event handler attributes</span> (and
their corresponding <span title="event handler event type">event
handler event types</span>) that must be supported by all <span>HTML
elements</span>, as both content attributes and DOM attributes, and
on <code>Document</code> and <code>Window</code> objects, as DOM
attributes.</p>

<table>
<thead>
Expand Down Expand Up @@ -54675,11 +54676,12 @@ interface <dfn>Function</dfn> {

<hr>

<p>The following are the <span>event handler attributes</span> (and their corresponding <span
title="event handler event type">event handler event types</span>)
that must be supported by all <span>HTML elements</span> other than
<code>body</code>, as both content attributes and DOM attributes,
and on <code>Document</code> objects, as DOM attributes:</p>
<p>The following are the <span>event handler attributes</span> (and
their corresponding <span title="event handler event type">event
handler event types</span>) that must be supported by all <span>HTML
elements</span> other than <code>body</code>, as both content
attributes and DOM attributes, and on <code>Document</code> objects,
as DOM attributes:</p>

<table>
<thead>
Expand All @@ -54693,12 +54695,13 @@ interface <dfn>Function</dfn> {

<hr>

<p>The following are the <span>event handler attributes</span> (and their corresponding <span
title="event handler event type">event handler event types</span>)
that must be supported by <code>Window</code> objects, as DOM
attributes on the <code>Window</code> object, and with corresponding
content attributes and DOM attributes exposed on the
<code>body</code> element:</p>
<p>The following are the <span>event handler attributes</span> (and
their corresponding <span title="event handler event type">event
handler event types</span>) that must be supported by
<code>Window</code> objects, as DOM attributes on the
<code>Window</code> object, and with corresponding content
attributes and DOM attributes exposed on the <code>body</code>
element:</p>

<table>
<thead>
Expand Down

0 comments on commit 71a0c2e

Please sign in to comment.