Skip to content

Commit

Permalink
[] (0) Mention what happens to event handlers on <body> elements obta…
Browse files Browse the repository at this point in the history
…ined by XHR or createDocument(). (bug 6515)

git-svn-id: http://svn.whatwg.org/webapps@3129 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 26, 2009
1 parent 71a0c2e commit ea9fafd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
15 changes: 13 additions & 2 deletions index
Expand Up @@ -47754,6 +47754,17 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
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>
Expand Down Expand Up @@ -47806,8 +47817,8 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
</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
Expand Down
15 changes: 13 additions & 2 deletions source
Expand Up @@ -54413,6 +54413,17 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
getting, must return whatever the current value of the corresponding
event handler attribute is (possibly null).</p>

<p>If an <span title="event handler DOM attributes">event handler
DOM attribute</span> exposes an <span title="event handler
attributes">event handler attribute</span> 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 <span title="event
handler DOM attributes">event handler DOM attribute</span> on
<code>body</code> elements that do not have corresponding
<code>Window</code> objects.</p>

<p class="note">Certain event handler DOM attributes have additional
requirements, in particular the <code
title="handler-MessagePort-onmessage">onmessage</code> attribute of
Expand Down Expand Up @@ -54482,8 +54493,8 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
</li>

<li><p>If the previous steps failed to compile the script, then set
the corresponding <span title="event handler attributes">event handler attribute</span> to null and
abort these steps.</p></li>
the corresponding <span title="event handler attributes">event
handler attribute</span> to null and abort these steps.</p></li>

<li><p>Set up the <span>script's global object</span>, the
<span>script's browsing context</span>, the <span>script's URL
Expand Down

0 comments on commit ea9fafd

Please sign in to comment.