[html5] r2537 - [giow] (2) Make element.click() non-reentrant.
whatwg at whatwg.org
whatwg at whatwg.org
Tue Dec 16 15:29:09 PST 2008
Author: ianh
Date: 2008-12-16 15:29:08 -0800 (Tue, 16 Dec 2008)
New Revision: 2537
Modified:
index
source
Log:
[giow] (2) Make element.click() non-reentrant.
Modified: index
===================================================================
--- index 2008-12-16 22:52:26 UTC (rev 2536)
+++ index 2008-12-16 23:29:08 UTC (rev 2537)
@@ -40455,16 +40455,28 @@
<h3 id=activation><span class=secno>6.3 </span>Activation</h3>
- <p>The <dfn id=dom-click title=dom-click>click()</dfn> method must, 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,
- the user agent must <a href=#fire-a-click-event>fire a <code>click</code> event</a> at
- the element.</p>
+ <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>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.</li>
- <h3 id=scrolling-elements-into-view><span class=secno>6.4 </span>Scrolling elements into view</h3>
+ <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>
+
+ </ol><h3 id=scrolling-elements-into-view><span class=secno>6.4 </span>Scrolling elements into view</h3>
+
<p>The <dfn id=dom-scrollintoview 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>
Modified: source
===================================================================
--- source 2008-12-16 22:52:26 UTC (rev 2536)
+++ source 2008-12-16 23:29:08 UTC (rev 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
More information about the Commit-Watchers
mailing list