- From: poot <cvsmail@w3.org>
- Date: Fri, 04 Nov 2011 13:39:42 -0400
- To: public-html-diffs@w3.org
hixie: Change how nested clicks are prevented to also prevent click() inside a regular onclick=''. (part 2) (whatwg r6818) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5452&r2=1.5453&f=h http://html5.org/tools/web-apps-tracker?from=6817&to=6818 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5452 retrieving revision 1.5453 diff -u -d -r1.5452 -r1.5453 --- Overview.html 4 Nov 2011 17:30:47 -0000 1.5452 +++ Overview.html 4 Nov 2011 17:39:32 -0000 1.5453 @@ -9669,7 +9669,13 @@ </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 + <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>Let <var title="">e</var> be the <a href="#nearest-activatable-element">nearest activatable element</a> of the element designated by the user (defined below), if any.</li> @@ -9681,16 +9687,18 @@ <p>Dispatch the required <code title="event-click"><a href="#event-click">click</a></code> event.</p> - <p>If there is an element <var title="">e</var>, then the default - action of the <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 element <var title="">e</var>.</p> + <p>If there is an element <var title="">e</var> and the <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 element <var title="">e</var>.</p> - <p>If there is an element <var title="">e</var> but the event is - canceled, the user agent must <a href="#run-canceled-activation-steps">run canceled activation - steps</a> on element <var title="">e</var>.</p> + <p>If there is an element <var title="">e</var> and the event + <em>is</em> canceled, <a href="#run-canceled-activation-steps">run canceled activation steps</a> + on element <var title="">e</var>.</p> </li> + <li><p>Set the <var title="">click in progress</var> flag on the + element to false.</li> + </ol><p class="note">The above doesn't happen for arbitrary synthetic events dispatched by author script. However, the <code title="dom-click"><a href="#dom-click">click()</a></code> method can be used to make it happen programmatically.</p>
Received on Friday, 4 November 2011 17:39:48 UTC