W3C home > Mailing lists > Public > public-html-commits@w3.org > January 2009

html5/spec Overview.html,1.1858,1.1859

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 21 Jan 2009 22:54:38 +0000
To: public-html-commits@w3.org
Message-Id: <E1LPly2-0001sJ-JZ@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv7189

Modified Files:
	Overview.html 
Log Message:
Fix minor mistakes in recent checkins. (whatwg r2689)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1858
retrieving revision 1.1859
diff -u -d -r1.1858 -r1.1859
--- Overview.html	21 Jan 2009 11:42:53 -0000	1.1858
+++ Overview.html	21 Jan 2009 22:54:35 -0000	1.1859
@@ -8630,12 +8630,22 @@
   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-onmessage><a href=#handler-onmessage>onmessage</a></code> <a href=#event-handler-attributes-0>event handler
   attributes</a> normally supported by <a href=#html-elements>HTML
   elements</a>.<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.<h4 id=the-section-element><span class=secno>4.4.2 </span>The <dfn><code>section</code></dfn> element</h4><dl class=element><dt>Categories</dt>
+  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.<h4 id=the-section-element><span class=secno>4.4.2 </span>The <dfn><code>section</code></dfn> element</h4><dl class=element><dt>Categories</dt>
    <dd><a href=#flow-content-0>Flow content</a>.</dd>
    <dd><a href=#sectioning-content-0>Sectioning content</a>.</dd>
    <dt>Contexts in which this element may be used:</dt>
@@ -28760,7 +28770,7 @@
   element:<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>
 
Received on Wednesday, 21 January 2009 22:54:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 21 January 2009 22:54:49 GMT