- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 26 May 2009 01:17:20 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv7601
Modified Files:
Overview.html
Log Message:
Mention what happens to event handlers on <body> elements obtained by XHR or createDocument(). (bug 6515) (whatwg r3129)
Index: Overview.html
===================================================================
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:17:31 UTC