[html5] r3128 - [e] (0) clean up some stuff around event handler attributes

whatwg at whatwg.org whatwg at whatwg.org
Mon May 25 18:00:07 PDT 2009


Author: ianh
Date: 2009-05-25 18:00:04 -0700 (Mon, 25 May 2009)
New Revision: 3128

Modified:
   index
   source
Log:
[e] (0) clean up some stuff around event handler attributes

Modified: index
===================================================================
--- index	2009-05-25 23:33:26 UTC (rev 3127)
+++ index	2009-05-26 01:00:04 UTC (rev 3128)
@@ -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-—-date:-01-jan-1901>Draft Recommendation — 25 May 2009</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 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>
@@ -12419,11 +12419,11 @@
   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
@@ -12434,13 +12434,12 @@
   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>
@@ -47909,10 +47908,12 @@
 
   <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>
@@ -47972,21 +47973,25 @@
 <!--<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>

Modified: source
===================================================================
--- source	2009-05-25 23:33:26 UTC (rev 3127)
+++ source	2009-05-26 01:00:04 UTC (rev 3128)
@@ -13234,14 +13234,14 @@
   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
@@ -13254,13 +13254,13 @@
   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>
@@ -54604,11 +54604,12 @@
 
   <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>
@@ -54675,11 +54676,12 @@
 
   <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>
@@ -54693,12 +54695,13 @@
 
   <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>




More information about the Commit-Watchers mailing list