W3C home > Mailing lists > Public > public-html-diffs@w3.org > May 2009

Mention what happens to event handlers on <body> elements obtained by XHR or createDocument(). (bug 6515) (whatwg r3129)

From: poot <cvsmail@w3.org>
Date: Tue, 26 May 2009 10:18:53 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090526011854.3AA622BC97@toro.w3.mag.keio.ac.jp>
Mention what happens to event handlers on <body> elements obtained by
XHR or createDocument(). (bug 6515) (whatwg r3129)
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6515

Diffs for this change per section: 
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2287.html#event-handler-dom-attributes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2287.html#event-handler-content-attributes

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2286&r2=1.2287&f=h
http://html5.org/tools/web-apps-tracker?from=3128&to=3129

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2286
retrieving revision 1.2287
diff -u -d -r1.2286 -r1.2287
--- Overview.html	26 May 2009 01:00:10 -0000	1.2286
+++ Overview.html	26 May 2009 01:17:16 -0000	1.2287
@@ -42868,6 +42868,17 @@
   getting, must return whatever the current value of the corresponding
   event handler attribute is (possibly null).</p>
 
+  <p>If an <a href="#event-handler-dom-attributes" title="event handler DOM attributes">event handler
+  DOM attribute</a> exposes an <a href="#event-handler-attributes-0" title="event handler
+  attributes">event handler attribute</a> of an object that doesn't
+  exist, it must always return null on getting and must do nothing on
+  setting.</p>
+
+  <p class="note">This can happen in particular for <a href="#event-handler-dom-attributes" title="event
+  handler DOM attributes">event handler DOM attribute</a> on
+  <code><a href="#the-body-element">body</a></code> elements that do not have corresponding
+  <code><a href="#window">Window</a></code> objects.</p>
+
   <p class="note">Certain event handler DOM attributes have additional
   requirements, in particular the <code title="handler-MessagePort-onmessage"><a href="#handler-messageport-onmessage">onmessage</a></code> attribute of
   <code><a href="#messageport">MessagePort</a></code> objects.</p>
@@ -42916,8 +42927,8 @@
    </li>
 
    <li><p>If the previous steps failed to compile the script, then set
-   the corresponding <a href="#event-handler-attributes-0" title="event handler attributes">event handler attribute</a> to null and
-   abort these steps.</li>
+   the corresponding <a href="#event-handler-attributes-0" title="event handler attributes">event
+   handler attribute</a> to null and abort these steps.</li>
 
    <li><p>Set up the <a href="#script-s-global-object">script's global object</a>, the
    <a href="#script-s-browsing-context">script's browsing context</a>, the <a href="#script-s-url-character-encoding">script's URL
Received on Tuesday, 26 May 2009 01:19:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:05 GMT