HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2537

File a bug

SVNBugCommentTime (UTC)
2537[Gecko] [Internet Explorer] [Opera] [Webkit] Make element.click() non-reentrant.2008-12-16 23:29
Index: source
===================================================================
--- source	(revision 2536)
+++ source	(revision 2537)
@@ -46123,14 +46123,32 @@
 
   <h3>Activation</h3>
 
-  <p>The <dfn title="dom-click">click()</dfn> method must, if the
-  element has a defined <span>activation behavior</span>, <span>run
-  synthetic click activation steps</span> on the element. Otherwise,
-  the user agent must <span>fire a <code>click</code> event</span> at
-  the element.</p>
+  <p>Each element has a <var title="">click in progress</var> flag,
+  initially set to false.</p>
 
+  <p>The <dfn title="dom-click">click()</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.</p></li>
+
+   <li><p>Set the <var title="">click in progress</var> flag on the
+   element to true.</p></li>
+
+   <li><p>If the element has a defined <span>activation behavior</span>,
+   <span>run synthetic click activation steps</span> on the
+   element. Otherwise, <span>fire a <code>click</code> event</span> at
+   the element.</p></li>
+
+   <li><p>Set the <var title="">click in progress</var> flag on the
+   element to false.</p></li>
+
+  </ol>
+
+
+
   <h3>Scrolling elements into view</h3>
 
   <p>The <dfn title="dom-scrollIntoView"><code>scrollIntoView([<var

|