[html5] r6817 - [giow] (2) Change how nested clicks are prevented to also prevent click() inside [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Nov 4 10:26:06 PDT 2011
Author: ianh
Date: 2011-11-04 10:26:04 -0700 (Fri, 04 Nov 2011)
New Revision: 6817
Modified:
complete.html
index
source
Log:
[giow] (2) Change how nested clicks are prevented to also prevent click() inside a regular onclick=''.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14427
Modified: complete.html
===================================================================
--- complete.html 2011-11-03 20:47:49 UTC (rev 6816)
+++ complete.html 2011-11-04 17:26:04 UTC (rev 6817)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 3 November 2011</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 4 November 2011</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -11773,15 +11773,41 @@
interaction event must be to <a href=#run-synthetic-click-activation-steps>run synthetic click activation
steps</a> on the element.</p> <!-- interaction event spec point -->
+ <p>Each element has a <var title="">click in progress</var> flag,
+ initially set to false.</p>
+
<p>When a user agent is to <dfn id=run-synthetic-click-activation-steps>run synthetic click activation
- steps</dfn> on an element, the user agent must <a href=#run-pre-click-activation-steps>run pre-click
- activation steps</a> on the element, then <a href=#fire-a-click-event>fire a <code title=event-click>click</code> event</a> at the element. The
- default action of this <code title=event-click><a href=#event-click>click</a></code> event
- must be to <a href=#run-post-click-activation-steps>run post-click activation steps</a> on the
- element. If the event is canceled, the user agent must <a href=#run-canceled-activation-steps>run
- canceled activation steps</a> on the element instead.</p>
+ steps</dfn> on an element, the user agent must run the following
+ steps:</p>
- <p>When a pointing device is clicked, the user agent must run these
+ <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><a href=#run-pre-click-activation-steps>Run pre-click activation steps</a> on the
+ element.</li>
+
+ <li><p><a href=#fire-a-click-event>Fire a <code title=event-click>click</code>
+ event</a> at the element.</li>
+
+ <li>
+
+ <p>If this <code title=event-click><a href=#event-click>click</a></code> event is not
+ canceled, <a href=#run-post-click-activation-steps>run post-click activation steps</a> on the
+ element.</p>
+
+ <p>If the event <em>is</em> canceled, the user agent must
+ <a href=#run-canceled-activation-steps>run canceled activation steps</a> on the element
+ instead.</p>
+
+ </li>
+
+ <li><p>Set the <var title="">click in progress</var> flag on the
+ element to false.</li>
+
+ </ol><p>When a pointing device is clicked, the user agent must run these
steps:</p>
<ol><li><p>Let <var title="">e</var> be the <a href=#nearest-activatable-element>nearest activatable
@@ -11840,9 +11866,10 @@
<p>When a user agent is to <dfn id=run-post-click-activation-steps>run post-click activation
steps</dfn> on an element, it must run the <dfn id=activation-behavior>activation
- behavior</dfn> defined for that element. Activation behaviors can
- refer to the <code title=event-click><a href=#event-click>click</a></code> event that was
- fired by the steps above leading up to this point.</p>
+ behavior</dfn> defined for that element, if any. Activation
+ behaviors can refer to the <code title=event-click><a href=#event-click>click</a></code>
+ event that was fired by the steps above leading up to this
+ point.</p>
</div>
@@ -71056,29 +71083,13 @@
</dl><div class=impl>
- <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><code>click()</code></dfn> method must
- run these steps:</p>
+ <a href=#run-synthetic-click-activation-steps>run synthetic click activation steps</a> on the
+ element.</p>
- <ol><li><p>If the element's <var title="">click in progress</var> flag
- is set to true, then abort these steps.</li>
+ </div>
- <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></div>
-
-
<h3 id=focus><span class=secno>8.3 </span>Focus</h3>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%20%0A...%3Cform%3E%3Cinput%20name%3Da%20onfocus%3D%22value%2B%3D1%3Bd.name%3D%27a%27%3Bname%3D%27d%27%3Bb.focus()%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22value%2B%3D1%3Bc.focus()%22%3E%0A%3Cinput%20name%3Dc%20onfocus%3D%22value%2B%3D1%3Bd.focus()%22%3E%0A%3Cinput%20name%3Dd%20onfocus%3D%22value%2B%3D1%3Ba.focus()%22%3E -->
Modified: index
===================================================================
--- index 2011-11-03 20:47:49 UTC (rev 6816)
+++ index 2011-11-04 17:26:04 UTC (rev 6817)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 3 November 2011</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 4 November 2011</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -11773,15 +11773,41 @@
interaction event must be to <a href=#run-synthetic-click-activation-steps>run synthetic click activation
steps</a> on the element.</p> <!-- interaction event spec point -->
+ <p>Each element has a <var title="">click in progress</var> flag,
+ initially set to false.</p>
+
<p>When a user agent is to <dfn id=run-synthetic-click-activation-steps>run synthetic click activation
- steps</dfn> on an element, the user agent must <a href=#run-pre-click-activation-steps>run pre-click
- activation steps</a> on the element, then <a href=#fire-a-click-event>fire a <code title=event-click>click</code> event</a> at the element. The
- default action of this <code title=event-click><a href=#event-click>click</a></code> event
- must be to <a href=#run-post-click-activation-steps>run post-click activation steps</a> on the
- element. If the event is canceled, the user agent must <a href=#run-canceled-activation-steps>run
- canceled activation steps</a> on the element instead.</p>
+ steps</dfn> on an element, the user agent must run the following
+ steps:</p>
- <p>When a pointing device is clicked, the user agent must run these
+ <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><a href=#run-pre-click-activation-steps>Run pre-click activation steps</a> on the
+ element.</li>
+
+ <li><p><a href=#fire-a-click-event>Fire a <code title=event-click>click</code>
+ event</a> at the element.</li>
+
+ <li>
+
+ <p>If this <code title=event-click><a href=#event-click>click</a></code> event is not
+ canceled, <a href=#run-post-click-activation-steps>run post-click activation steps</a> on the
+ element.</p>
+
+ <p>If the event <em>is</em> canceled, the user agent must
+ <a href=#run-canceled-activation-steps>run canceled activation steps</a> on the element
+ instead.</p>
+
+ </li>
+
+ <li><p>Set the <var title="">click in progress</var> flag on the
+ element to false.</li>
+
+ </ol><p>When a pointing device is clicked, the user agent must run these
steps:</p>
<ol><li><p>Let <var title="">e</var> be the <a href=#nearest-activatable-element>nearest activatable
@@ -11840,9 +11866,10 @@
<p>When a user agent is to <dfn id=run-post-click-activation-steps>run post-click activation
steps</dfn> on an element, it must run the <dfn id=activation-behavior>activation
- behavior</dfn> defined for that element. Activation behaviors can
- refer to the <code title=event-click><a href=#event-click>click</a></code> event that was
- fired by the steps above leading up to this point.</p>
+ behavior</dfn> defined for that element, if any. Activation
+ behaviors can refer to the <code title=event-click><a href=#event-click>click</a></code>
+ event that was fired by the steps above leading up to this
+ point.</p>
</div>
@@ -71056,29 +71083,13 @@
</dl><div class=impl>
- <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><code>click()</code></dfn> method must
- run these steps:</p>
+ <a href=#run-synthetic-click-activation-steps>run synthetic click activation steps</a> on the
+ element.</p>
- <ol><li><p>If the element's <var title="">click in progress</var> flag
- is set to true, then abort these steps.</li>
+ </div>
- <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></div>
-
-
<h3 id=focus><span class=secno>8.3 </span>Focus</h3>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%20%0A...%3Cform%3E%3Cinput%20name%3Da%20onfocus%3D%22value%2B%3D1%3Bd.name%3D%27a%27%3Bname%3D%27d%27%3Bb.focus()%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22value%2B%3D1%3Bc.focus()%22%3E%0A%3Cinput%20name%3Dc%20onfocus%3D%22value%2B%3D1%3Bd.focus()%22%3E%0A%3Cinput%20name%3Dd%20onfocus%3D%22value%2B%3D1%3Ba.focus()%22%3E -->
Modified: source
===================================================================
--- source 2011-11-03 20:47:49 UTC (rev 6816)
+++ source 2011-11-04 17:26:04 UTC (rev 6817)
@@ -12161,15 +12161,44 @@
interaction event must be to <span>run synthetic click activation
steps</span> on the element.</p> <!-- interaction event spec point -->
+ <p>Each element has a <var title="">click in progress</var> flag,
+ initially set to false.</p>
+
<p>When a user agent is to <dfn>run synthetic click activation
- steps</dfn> on an element, the user agent must <span>run pre-click
- activation steps</span> on the element, then <span>fire a <code
- title="event-click">click</code> event</span> at the element. The
- default action of this <code title="event-click">click</code> event
- must be to <span>run post-click activation steps</span> on the
- element. If the event is canceled, the user agent must <span>run
- canceled activation steps</span> on the element instead.</p>
+ steps</dfn> on an element, the user agent must run the following
+ 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><span>Run pre-click activation steps</span> on the
+ element.</p></li>
+
+ <li><p><span>Fire a <code title="event-click">click</code>
+ event</span> at the element.</p></li>
+
+ <li>
+
+ <p>If this <code title="event-click">click</code> event is not
+ canceled, <span>run post-click activation steps</span> on the
+ element.</p>
+
+ <p>If the event <em>is</em> canceled, the user agent must
+ <span>run canceled activation steps</span> on the element
+ instead.</p>
+
+ </li>
+
+ <li><p>Set the <var title="">click in progress</var> flag on the
+ element to false.</p></li>
+
+ </ol>
+
<p>When a pointing device is clicked, the user agent must run these
steps:</p>
@@ -12239,9 +12268,10 @@
<p>When a user agent is to <dfn>run post-click activation
steps</dfn> on an element, it must run the <dfn>activation
- behavior</dfn> defined for that element. Activation behaviors can
- refer to the <code title="event-click">click</code> event that was
- fired by the steps above leading up to this point.</p>
+ behavior</dfn> defined for that element, if any. Activation
+ behaviors can refer to the <code title="event-click">click</code>
+ event that was fired by the steps above leading up to this
+ point.</p>
</div>
@@ -80803,30 +80833,10 @@
<div class="impl">
- <p>Each element has a <var title="">click in progress</var> flag,
- initially set to false.</p>
-
<p>The <dfn title="dom-click"><code>click()</code></dfn> method must
- run these steps:</p>
+ <span>run synthetic click activation steps</span> on the
+ element.</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>
-
</div>
More information about the Commit-Watchers
mailing list