spec/Overview.html 1.1859 2689 Fix minor mistakes in recent checkins. (

Fix minor mistakes in recent checkins. (whatwg r2689)

onbeforeunload
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1859.html#handler-window-onbeforeunload
HTMLBodyElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1859.html#htmlbodyelement
4.4.2 The section element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1859.html#the-section-element
onerror
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1859.html#handler-window-onerror

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1858&r2=1.1859&f=h
http://html5.org/tools/web-apps-tracker?from=2688&to=2689

===================================================================
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:58:16 UTC