- From: poot <cvsmail@w3.org>
- Date: Wed, 16 Feb 2011 14:42:15 -0500
- To: public-html-diffs@w3.org
hixie: Rephrase the :active prose to not suggest that the Selectors spec is wrong. (whatwg r5897) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4736&r2=1.4737&f=h http://html5.org/tools/web-apps-tracker?from=5896&to=5897 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4736 retrieving revision 1.4737 diff -u -d -r1.4736 -r1.4737 --- Overview.html 16 Feb 2011 08:30:16 -0000 1.4736 +++ Overview.html 16 Feb 2011 19:40:59 -0000 1.4737 @@ -41680,48 +41680,63 @@ <dd> <p>The <code title="selector-active"><a href="#selector-active">:active</a></code> pseudo-class - must match any element falling into one of the following - categories between the time the user begins to activate the - element and the time the user stops activating the element:</p> + is defined to match an element <q cite="http://dev.w3.org/csswg/selectors3/#the-user-action-pseudo-classes-hover-act">while + an element is <i>being activated</i> by the user</q>. For the + purposes of defining the <code title="selector-active"><a href="#selector-active">:active</a></code> pseudo-class only, an HTML + user agent must consider an element as <i>being activated</i> if + it is:</p> - <ul><li><code><a href="#the-a-element">a</a></code> elements that have an <code title="attr-hyperlink-href"><a href="#attr-hyperlink-href">href</a></code> attribute</li> + <ul><li> - <li><code><a href="#the-area-element">area</a></code> elements that have an <code title="attr-hyperlink-href"><a href="#attr-hyperlink-href">href</a></code> attribute</li> + <p>An element falling into one of the following categories + between the time the user begins to indicate an intent to + trigger the element's <a href="#activation-behavior">activation behavior</a> and + either the time the user stops indicating an intent to trigger + the element's <a href="#activation-behavior">activation behavior</a>, or the time the + element's <a href="#activation-behavior">activation behavior</a> has finished running, + which ever comes first:</p> - <li><code><a href="#the-link-element">link</a></code> elements that have an <code title="attr-link-href"><a href="#attr-link-href">href</a></code> attribute</li> + <ul><li><code><a href="#the-a-element">a</a></code> elements that have an <code title="attr-hyperlink-href"><a href="#attr-hyperlink-href">href</a></code> attribute</li> - <li><code><a href="#the-button-element">button</a></code> elements that are not <a href="#concept-fe-disabled" title="concept-fe-disabled">disabled</a></li> + <li><code><a href="#the-area-element">area</a></code> elements that have an <code title="attr-hyperlink-href"><a href="#attr-hyperlink-href">href</a></code> attribute</li> - <li><code><a href="#the-input-element">input</a></code> elements whose <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is in the <a href="#submit-button-state" title="attr-input-type-submit">Submit Button</a>, <a href="#image-button-state" title="attr-input-type-image">Image Button</a>, <a href="#reset-button-state" title="attr-input-type-reset">Reset Button</a>, or <a href="#button-state" title="attr-input-type-button">Button</a> state</li> + <li><code><a href="#the-link-element">link</a></code> elements that have an <code title="attr-link-href"><a href="#attr-link-href">href</a></code> attribute</li> - <li><code><a href="#the-command">command</a></code> elements that do not have a <code title="attr-command-disabled"><a href="#attr-command-disabled">disabled</a></code> attribute</li> + <li><code><a href="#the-button-element">button</a></code> elements that are not <a href="#concept-fe-disabled" title="concept-fe-disabled">disabled</a></li> - <li>elements that are <a href="#specially-focusable">specially focusable</a></li> + <li><code><a href="#the-input-element">input</a></code> elements whose <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is in the <a href="#submit-button-state" title="attr-input-type-submit">Submit Button</a>, <a href="#image-button-state" title="attr-input-type-image">Image Button</a>, <a href="#reset-button-state" title="attr-input-type-reset">Reset Button</a>, or <a href="#button-state" title="attr-input-type-button">Button</a> state</li> - </ul><p class="example">For example, if the user is using a keyboard to - push a <code><a href="#the-button-element">button</a></code> element by pressing the space bar, the - element would match this pseudo-class in between the time that the - element received the <code title="event-keydown">keydown</code> - event and the time the element received the <code title="event-keyup">keyup</code> event.</p> + <li><code><a href="#the-command">command</a></code> elements that do not have a <code title="attr-command-disabled"><a href="#attr-command-disabled">disabled</a></code> attribute</li> - <p>In addition, the <code title="selector-active"><a href="#selector-active">:active</a></code> - pseudo-class must match any element that the user indicates using - a pointing device while that pointing device is in the "down" - state (e.g. for a mouse, between the time the mouse button is - pressed and the time it is depressed).</p> + <li>elements that are <a href="#specially-focusable">specially focusable</a></li> - <p class="note">This requirement is a <a href="#willful-violation">willful - violation</a> of the Selectors specification (which only allows - elements to match the <code title="selector-active"><a href="#selector-active">:active</a></code> - pseudo-class when they are activated), motivated by a desire to be - compatible with legacy user agents. <a href="#refsSELECTORS">[SELECTORS]</a></p> + </ul><p class="example">For example, if the user is using a keyboard + to push a <code><a href="#the-button-element">button</a></code> element by pressing the space bar, + the element would match this pseudo-class in between the time + that the element received the <code title="event-keydown">keydown</code> event and the time the + element received the <code title="event-keyup">keyup</code> + event.</p> - <p>In addition, the <code title="selector-active"><a href="#selector-active">:active</a></code> - pseudo-class must match any element that has an ancestor that - matches the the <code title="selector-active"><a href="#selector-active">:active</a></code> - pseudo-class.</p> + </li> - </dd> + <li> + + <p>An element that the user indicates using a pointing device + while that pointing device is in the "down" state (e.g. for a + mouse, between the time the mouse button is pressed and the time + it is depressed).</p> + + </li> + + <li> + + <p>An element that has a descendant that is currently matching + the the <code title="selector-active"><a href="#selector-active">:active</a></code> + pseudo-class.</p> + + </li> + + </ul></dd> <dt><dfn id="selector-enabled" title="selector-enabled"><code>:enabled</code></dfn></dt>
Received on Wednesday, 16 February 2011 19:42:16 UTC