[html5] r2689 - [e] (0) Fix minor mistakes in recent checkins.

whatwg at whatwg.org whatwg at whatwg.org
Wed Jan 21 14:54:30 PST 2009


Author: ianh
Date: 2009-01-21 14:54:29 -0800 (Wed, 21 Jan 2009)
New Revision: 2689

Modified:
   index
   source
Log:
[e] (0) Fix minor mistakes in recent checkins.

Modified: index
===================================================================
--- index	2009-01-21 11:42:48 UTC (rev 2688)
+++ index	2009-01-21 22:54:29 UTC (rev 2689)
@@ -10521,12 +10521,22 @@
   elements</a>.</p>
 
   <p class=example>Thus, for example, a bubbling <code title=event-message><a href=#event-message>message</a></code> event fired on a child of
-  <a href=#the-body-element-1>the body element</a> of a <code>Document</code> would
+  <a href=#the-body-element-1>the body element</a> of a <code>Document</code> would first
   trigger the <code title=handler-onmessage><a href=#handler-onmessage>onmessage</a></code>
-  <a href=#event-handler-content-attributes>event handler content attributes</a> of that element and of
-  the root <code><a href=#the-html-element>html</a></code> element, but would not trigger the <code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code> <a href=#event-handler-content-attributes title="event
+  <a href=#event-handler-content-attributes>event handler content attributes</a> of that element, then
+  that of the root <code><a href=#the-html-element>html</a></code> element, and only <em>then</em>
+  would it trigger the <code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code> <a href=#event-handler-content-attributes title="event
   handler content attributes">event handler content attribute</a>
-  on the <code><a href=#the-body-element>body</a></code> element.</p>
+  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 event handler attribute 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>
@@ -35425,7 +35435,7 @@
   <dl><dt><dfn id=handler-window-onbeforeunload title=handler-window-onbeforeunload><code>onbeforeunload</code></dfn></dt>
 
    <dd><p>Must be invoked whenever a <code title=event-beforeunload>beforeunload</code> event is targeted at or bubbles
-   through the element or object.</dd>
+   through the object.</dd>
 
    <dt><dfn id=handler-window-onerror title=handler-window-onerror><code>onerror</code></dfn></dt>
 

Modified: source
===================================================================
--- source	2009-01-21 11:42:48 UTC (rev 2688)
+++ source	2009-01-21 22:54:29 UTC (rev 2689)
@@ -11182,13 +11182,23 @@
 
   <p class="example">Thus, for example, a bubbling <code
   title="event-message">message</code> event fired on a child of
-  <span>the body element</span> of a <code>Document</code> would
+  <span>the body element</span> of a <code>Document</code> would first
   trigger the <code title="handler-onmessage">onmessage</code>
-  <span>event handler content attributes</span> of that element and of
-  the root <code>html</code> element, but would not trigger the <code
+  <span>event handler content attributes</span> of that element, then
+  that of the root <code>html</code> element, and only <em>then</em>
+  would it trigger the <code
   title="handler-window-onmessage">onmessage</code> <span title="event
   handler content attributes">event handler content attribute</span>
-  on the <code>body</code> element.</p>
+  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 event handler attribute 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>
@@ -40309,7 +40319,7 @@
 
    <dd><p>Must be invoked whenever a <code
    title="event-beforeunload">beforeunload</code> event is targeted at or bubbles
-   through the element or object.</p></dd>
+   through the object.</p></dd>
 
    <dt><dfn title="handler-window-onerror"><code>onerror</code></dfn></dt>
 




More information about the Commit-Watchers mailing list