Skip to content
Permalink
Browse files

[giow] (2) Make element.click() non-reentrant.

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 0122952c3e6a2f7195cf3971a8a21012776f9942
Showing with 41 additions and 11 deletions.
  1. +18 −6 index
  2. +23 −5 source
24 index

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

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



0 comments on commit 0122952

Please sign in to comment.
You can’t perform that action at this time.