- From: poot <cvsmail@w3.org>
- Date: Tue, 29 Sep 2009 19:27:46 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Removing an event handler content attribute needs to clear out the event handler. (whatwg r4050) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3211&r2=1.3212&f=h http://html5.org/tools/web-apps-tracker?from=4049&to=4050 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3211 retrieving revision 1.3212 diff -u -d -r1.3211 -r1.3212 --- Overview.html 29 Sep 2009 10:13:09 -0000 1.3211 +++ Overview.html 29 Sep 2009 10:27:27 -0000 1.3212 @@ -45420,17 +45420,20 @@ <li><p>Set the corresponding <a href="#event-handlers" title="event handlers">event handler</a> to the aforementioned function.</li> - </ol></div><p class="note">When an <a href="#event-handler-content-attributes" title="event handler content + </ol><p>When an event handler content attribute is removed, the user + agent must set the corresponding <a href="#event-handlers" title="event handlers">event + handler</a> to null.</p> + <!-- + http://software.hixie.ch/utilities/js/live-dom-viewer/saved/245 onload + http://software.hixie.ch/utilities/js/live-dom-viewer/saved/247 onclick + see http://www.w3.org/Bugs/Public/show_bug.cgi?id=7626#c5 for reasoning + --> + + </div><p class="note">When an <a href="#event-handler-content-attributes" title="event handler content attributes">event handler content attribute</a> is set on an element owned by a <code>Document</code> that is not in a <a href="#browsing-context">browsing context</a>, the corresponding event handler is - not changed.<p class="note">Removing an <a href="#event-handler-content-attributes" title="event handler content - attributes">event handler content attribute</a> does not reset - the corresponding <a href="#event-handlers" title="event handlers">event - handler</a>.</p><!-- - http://software.hixie.ch/utilities/js/live-dom-viewer/saved/245 onload - http://software.hixie.ch/utilities/js/live-dom-viewer/saved/247 onclick - --><!-- v2: we should probably support HTML4's Content-Script-Type header here. --><div class="impl"> + not changed.</p><!-- v2: we should probably support HTML4's Content-Script-Type header here. --><div class="impl"> <hr><p>All <a href="#event-handlers">event handlers</a> on an element, whether set to null or to a <code><a href="#function">Function</a></code> object, must be registered
Received on Tuesday, 29 September 2009 10:28:23 UTC