W3C home > Mailing lists > Public > public-html-commits@w3.org > November 2011

html5/spec Overview.html,1.5452,1.5453

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 04 Nov 2011 17:39:37 +0000
To: public-html-commits@w3.org
Message-Id: <E1RMNjt-00010V-F8@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv3800

Modified Files:
	Overview.html 
Log Message:
Change how nested clicks are prevented to also prevent click() inside a regular onclick=''. (part 2) (whatwg r6818)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5452
retrieving revision 1.5453
diff -u -d -r1.5452 -r1.5453
--- Overview.html	4 Nov 2011 17:30:47 -0000	1.5452
+++ Overview.html	4 Nov 2011 17:39:32 -0000	1.5453
@@ -9669,7 +9669,13 @@
   </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
+  <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>Let <var title="">e</var> be the <a href="#nearest-activatable-element">nearest activatable
    element</a> of the element designated by the user (defined
    below), if any.</li>
 
@@ -9681,16 +9687,18 @@
     <p>Dispatch the required <code title="event-click"><a href="#event-click">click</a></code>
     event.</p> 
 
-    <p>If there is an element <var title="">e</var>, then the default
-    action of the <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 element <var title="">e</var>.</p>
+    <p>If there is an element <var title="">e</var> and the <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 element <var title="">e</var>.</p>
 
-    <p>If there is an element <var title="">e</var> but the event is
-    canceled, the user agent must <a href="#run-canceled-activation-steps">run canceled activation
-    steps</a> on element <var title="">e</var>.</p>
+    <p>If there is an element <var title="">e</var> and the event
+    <em>is</em> canceled, <a href="#run-canceled-activation-steps">run canceled activation steps</a>
+    on element <var title="">e</var>.</p>
 
    </li>
 
+   <li><p>Set the <var title="">click in progress</var> flag on the
+   element to false.</li>
+
   </ol><p class="note">The above doesn't happen for arbitrary synthetic
   events dispatched by author script. However, the <code title="dom-click"><a href="#dom-click">click()</a></code> method can be used to make it
   happen programmatically.</p>
Received on Friday, 4 November 2011 17:39:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 4 November 2011 17:39:40 GMT