HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2537[Gecko] [Internet Explorer] [Opera] [Webkit] Make element.click() non-reentrant.2008-12-16 23:29
@@ -46116,25 +46116,43 @@ at the first element with the given ID must be treated as if it was cloned and r
   not respond to input? -->
 
   <p>The <dfn title="dom-hidden"><code>hidden</code></dfn> DOM
   attribute must <span>reflect</span> the content attribute of the
   same name.</p>
 
 
 
   <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
   title="">top</var>])</code></dfn> method, when called, must cause
   the element on which the method was called to have the attention of
   the user called to it.</p>
 

|