Skip to content

Commit

Permalink
[giow] (2) Make element.click() non-reentrant.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2537 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 16, 2008
1 parent 76eefe8 commit 0122952
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 11 deletions.
24 changes: 18 additions & 6 deletions index
Expand Up @@ -40455,15 +40455,27 @@ at the first element with the given ID must be treated as if it was cloned and r

<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>

<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>

<h3 id=scrolling-elements-into-view><span class=secno>6.4 </span>Scrolling elements into view</h3>
</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
Expand Down
28 changes: 23 additions & 5 deletions source
Expand Up @@ -46123,11 +46123,29 @@ at the first element with the given ID must be treated as if it was cloned and r

<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>



Expand Down

0 comments on commit 0122952

Please sign in to comment.