[html5] r8421 - [giow] (3) Make sure .click() doesn't fire on disabled form controls. Fixing htt [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Jan 27 11:04:28 PST 2014


Author: ianh
Date: 2014-01-27 11:04:27 -0800 (Mon, 27 Jan 2014)
New Revision: 8421

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Make sure .click() doesn't fire on disabled form controls.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24404
Affected topics: DOM APIs, HTML

Modified: complete.html
===================================================================
--- complete.html	2014-01-27 18:14:07 UTC (rev 8420)
+++ complete.html	2014-01-27 19:04:27 UTC (rev 8421)
@@ -75511,10 +75511,13 @@
 
   </dl><div class=impl>
 
-  <p>The <dfn id=dom-click title=dom-click><code>click()</code></dfn> method must <a href=#run-synthetic-click-activation-steps>run synthetic click
-  activation steps</a> on the element.</p>
+  <p>The <dfn id=dom-click title=dom-click><code>click()</code></dfn> method must run the following steps:</p>
 
-  </div>
+  <ol><li><p>If the element is a form control that is <a href=#concept-fe-disabled title=concept-fe-disabled>disabled</a>, abort these steps.</li>
+
+   <li><p><a href=#run-synthetic-click-activation-steps>Run synthetic click activation steps</a> on the element.</li>
+
+  </ol></div>
 <!--TOPIC:HTML-->
 
 
@@ -102494,6 +102497,7 @@
   Elliott Sprehn,
   Elliotte Harold,
   Eric Carlson,
+  Eric Casler,
   Eric Lawrence,
   Eric Rescorla,
   Eric Semling,

Modified: index
===================================================================
--- index	2014-01-27 18:14:07 UTC (rev 8420)
+++ index	2014-01-27 19:04:27 UTC (rev 8421)
@@ -75511,10 +75511,13 @@
 
   </dl><div class=impl>
 
-  <p>The <dfn id=dom-click title=dom-click><code>click()</code></dfn> method must <a href=#run-synthetic-click-activation-steps>run synthetic click
-  activation steps</a> on the element.</p>
+  <p>The <dfn id=dom-click title=dom-click><code>click()</code></dfn> method must run the following steps:</p>
 
-  </div>
+  <ol><li><p>If the element is a form control that is <a href=#concept-fe-disabled title=concept-fe-disabled>disabled</a>, abort these steps.</li>
+
+   <li><p><a href=#run-synthetic-click-activation-steps>Run synthetic click activation steps</a> on the element.</li>
+
+  </ol></div>
 <!--TOPIC:HTML-->
 
 
@@ -102494,6 +102497,7 @@
   Elliott Sprehn,
   Elliotte Harold,
   Eric Carlson,
+  Eric Casler,
   Eric Lawrence,
   Eric Rescorla,
   Eric Semling,

Modified: source
===================================================================
--- source	2014-01-27 18:14:07 UTC (rev 8420)
+++ source	2014-01-27 19:04:27 UTC (rev 8421)
@@ -84462,9 +84462,17 @@
 
   <div class="impl">
 
-  <p>The <dfn data-x="dom-click"><code>click()</code></dfn> method must <span>run synthetic click
-  activation steps</span> on the element.</p>
+  <p>The <dfn data-x="dom-click"><code>click()</code></dfn> method must run the following steps:</p>
 
+  <ol>
+
+   <li><p>If the element is a form control that is <span
+   data-x="concept-fe-disabled">disabled</span>, abort these steps.</p></li>
+
+   <li><p><span>Run synthetic click activation steps</span> on the element.</p></li>
+
+  </ol>
+
   </div>
 <!--TOPIC:HTML-->
 
@@ -114480,6 +114488,7 @@
   Elliott Sprehn,
   Elliotte Harold,
   Eric Carlson,
+  Eric Casler,
   Eric Lawrence,
   Eric Rescorla,
   Eric Semling,




More information about the Commit-Watchers mailing list