hixie: Change how nested clicks are prevented to also prevent click() inside a regular onclick=''. (whatwg r6817)

hixie: Change how nested clicks are prevented to also prevent click()
inside a regular onclick=''. (whatwg r6817)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5451&r2=1.5452&f=h
http://html5.org/tools/web-apps-tracker?from=6816&to=6817

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5451
retrieving revision 1.5452
diff -u -d -r1.5451 -r1.5452
--- Overview.html 3 Nov 2011 20:52:22 -0000 1.5451
+++ Overview.html 4 Nov 2011 17:30:47 -0000 1.5452
@@ -320,7 +320,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-3-november-2011">Editor's Draft 3 November 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-4-november-2011">Editor's Draft 4 November 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -466,7 +466,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 3 November 2011 Editor's Draft.
+  This specification is the 4 November 2011 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -9632,15 +9632,41 @@
   interaction event must be to <a href="#run-synthetic-click-activation-steps">run synthetic click activation
   steps</a> on the element.</p> 
 
+  <p>Each element has a <var title="">click in progress</var> flag,
+  initially set to false.</p>
+
   <p>When a user agent is to <dfn id="run-synthetic-click-activation-steps">run synthetic click activation
-  steps</dfn> on an element, the user agent must <a href="#run-pre-click-activation-steps">run pre-click
-  activation steps</a> on the element, then <a href="#fire-a-click-event">fire a <code title="event-click">click</code> event</a> at the element. The
-  default action of this <code title="event-click"><a href="#event-click">click</a></code> event
-  must be to <a href="#run-post-click-activation-steps">run post-click activation steps</a> on the
-  element. If the event is canceled, the user agent must <a href="#run-canceled-activation-steps">run
-  canceled activation steps</a> on the element instead.</p>
+  steps</dfn> on an element, the user agent must run the following
+  steps:</p>
 
-  <p>When a pointing device is clicked, the user agent must run these
+  <ol><li><p>If the element's <var title="">click in progress</var> flag
+   is set to true, then abort these steps.</li>
+
+   <li><p>Set the <var title="">click in progress</var> flag on the
+   element to true.</li>
+
+   <li><p><a href="#run-pre-click-activation-steps">Run pre-click activation steps</a> on the
+   element.</li>
+
+   <li><p><a href="#fire-a-click-event">Fire a <code title="event-click">click</code>
+   event</a> at the element.</li>
+
+   <li>
+
+    <p>If this <code title="event-click"><a href="#event-click">click</a></code> event is not
+    canceled, <a href="#run-post-click-activation-steps">run post-click activation steps</a> on the
+    element.</p>
+
+    <p>If the event <em>is</em> canceled, the user agent must
+    <a href="#run-canceled-activation-steps">run canceled activation steps</a> on the element
+    instead.</p>
+
+   </li>
+
+   <li><p>Set the <var title="">click in progress</var> flag on the
+   element to false.</li>
+
+  </ol><p>When a pointing device is clicked, the user agent must run these
   steps:</p>
 
   <ol><li><p>Let <var title="">e</var> be the <a href="#nearest-activatable-element">nearest activatable
@@ -9699,9 +9725,10 @@
 
   <p>When a user agent is to <dfn id="run-post-click-activation-steps">run post-click activation
   steps</dfn> on an element, it must run the <dfn id="activation-behavior">activation
-  behavior</dfn> defined for that element. Activation behaviors can
-  refer to the <code title="event-click"><a href="#event-click">click</a></code> event that was
-  fired by the steps above leading up to this point.</p>
+  behavior</dfn> defined for that element, if any. Activation
+  behaviors can refer to the <code title="event-click"><a href="#event-click">click</a></code>
+  event that was fired by the steps above leading up to this
+  point.</p>
 
   </div><h6 id="palpable-content-0"><span class="secno">3.2.5.1.8 </span>Palpable content</h6><p>As a general rule, elements whose content model allows any
   <a href="#flow-content">flow content</a> or <a href="#phrasing-content">phrasing content</a> should
@@ -52638,27 +52665,11 @@
 
   </dl><div class="impl">
 
-  <p>Each element has a <var title="">click in progress</var> flag,
-  initially set to false.</p>
-
   <p>The <dfn id="dom-click" title="dom-click"><code>click()</code></dfn> method must
-  run these steps:</p>
-
-  <ol><li><p>If the element's <var title="">click in progress</var> flag
-   is set to true, then abort these steps.</li>
-
-   <li><p>Set the <var title="">click in progress</var> flag on the
-   element to true.</li>
-
-   <li><p>If the element has a defined <a href="#activation-behavior">activation behavior</a>,
-   <a href="#run-synthetic-click-activation-steps">run synthetic click activation steps</a> on the
-   element. Otherwise, <a href="#fire-a-click-event">fire a <code>click</code> event</a> at
-   the element.</li>
-
-   <li><p>Set the <var title="">click in progress</var> flag on the
-   element to false.</li>
+  <a href="#run-synthetic-click-activation-steps">run synthetic click activation steps</a> on the
+  element.</p>
 
-  </ol></div><h3 id="focus"><span class="secno">7.3 </span>Focus</h3><div class="impl">
+  </div><h3 id="focus"><span class="secno">7.3 </span>Focus</h3><div class="impl">
 
   <p>When an element is <i>focused</i>, key events received by the
   document must be targeted at that element. There may be no element

Received on Friday, 4 November 2011 17:31:11 UTC