[html5] r3489 - [] (0) Make accesskey='' activate/click elements, not just focus them. This incl [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jul 28 17:27:01 PDT 2009
Author: ianh
Date: 2009-07-28 17:27:00 -0700 (Tue, 28 Jul 2009)
New Revision: 3489
Modified:
index
source
Log:
[] (0) Make accesskey='' activate/click elements, not just focus them. This includes a horrific paragraph of confusingness. Let me know if you can find a clear way to rephrase it.
Modified: index
===================================================================
--- index 2009-07-29 00:11:16 UTC (rev 3488)
+++ index 2009-07-29 00:27:00 UTC (rev 3489)
@@ -593,7 +593,7 @@
<li><a href=#using-the-bb-element-to-define-a-command><span class=secno>4.11.6.6 </span>Using the <code>bb</code> element to define a command</a></li>
<li><a href=#using-the-accesskey-attribute-on-a-label-element-to-define-a-command><span class=secno>4.11.6.7 </span>Using the <code title=attr-accesskey>accesskey</code> attribute on a <code>label</code> element to define a command</a></li>
<li><a href=#using-the-accesskey-attribute-on-a-legend-element-to-define-a-command><span class=secno>4.11.6.8 </span>Using the <code title=attr-accesskey>accesskey</code> attribute on a <code>legend</code> element to define a command</a></li>
- <li><a href=#using-the-accesskey-attribute-to-define-a-command-on-a-focusable-element><span class=secno>4.11.6.9 </span>Using the <code title=attr-accesskey>accesskey</code> attribute to define a command on a focusable element</a></ol></ol></li>
+ <li><a href=#using-the-accesskey-attribute-to-define-a-command-on-other-elements><span class=secno>4.11.6.9 </span>Using the <code title=attr-accesskey>accesskey</code> attribute to define a command on other elements</a></ol></ol></li>
<li><a href=#miscellaneous-elements><span class=secno>4.12 </span>Miscellaneous elements</a>
<ol>
<li><a href=#the-legend-element><span class=secno>4.12.1 </span>The <code>legend</code> element</a></li>
@@ -40637,19 +40637,15 @@
- <h5 id=using-the-accesskey-attribute-to-define-a-command-on-a-focusable-element><span class=secno>4.11.6.9 </span><dfn title=accesskey-command>Using the <code title=attr-accesskey>accesskey</code> attribute to define a command on a focusable element</dfn></h5>
+ <h5 id=using-the-accesskey-attribute-to-define-a-command-on-other-elements><span class=secno>4.11.6.9 </span><dfn title=accesskey-command>Using the <code title=attr-accesskey>accesskey</code> attribute to define a command on other elements</dfn></h5>
- <p>An element that is <a href=#focusable>focusable</a>, has an <a href=#assigned-access-key>assigned
- access key</a>, and is neither an <code><a href=#the-a-element>a</a></code> element with an
- <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> attribute, a
- <code><a href=#the-button-element>button</a></code> element, an <code><a href=#the-input-element>input</a></code> element whose
- attribute is in one of the <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a>, <a href=#reset-button-state title=attr-input-type-reset>Reset Button</a>, <a href=#button-state title=attr-input-type-button>Button</a>, <a href=#radio-button-state title=attr-input-type-radio>Radio Button</a>, or <a href=#checkbox-state title=attr-input-type-checkbox>Checkbox</a> states, an
- <code><a href=#the-option-element>option</a></code> element with an ancestor <code><a href=#the-select-element>select</a></code>
- element and either no <code title=attr-option-value><a href=#attr-option-value>value</a></code>
- attribute or a <code title=attr-option-value><a href=#attr-option-value>value</a></code>
- attribute that is not the empty string, a <code><a href=#the-command>command</a></code>
- element, nor a <code><a href=#the-bb-element>bb</a></code> element, <a href=#concept-command title=concept-command>defines a command</a>.</p>
+ <p>An element that has an <a href=#assigned-access-key>assigned access key</a> <a href=#concept-command title=concept-command>defines a command</a>.</p>
+ <p>If one of the other sections that define elements that <a href=#concept-command title=concept-command>define commands</a> define that this
+ element <a href=#concept-command title=concept-command>defines a command</a>, then
+ that section applies to this element, and this section does
+ not. Otherwise, this section applies to that element.</p>
+
<p>The <a href=#command-facet-type title=command-facet-Type>Type</a> of the command
is "command".</p>
@@ -40689,8 +40685,15 @@
of the command is always false. (The command is never checked.)</p>
<p>The <a href=#command-facet-action title=command-facet-Action>Action</a> of the
- command is to run the <a href=#focusing-steps>focusing steps</a> for the
- element.</p>
+ command, if the element has a defined <a href=#activation-behavior>activation
+ behavior</a>, is to <a href=#run-synthetic-click-activation-steps>run synthetic click activation
+ steps</a> on the element. Otherwise, if the element is
+ <a href=#focusable>focusable</a>, the <a href=#command-facet-action title=command-facet-Action>Action</a> of the command is to run
+ the <a href=#focusing-steps>focusing steps</a> for the element and then to
+ <a href=#fire-a-click-event>fire a <code title=event-click>click</code> event</a> at
+ the element. Otherwise, <a href=#command-facet-action title=command-facet-Action>Action</a> of the command is just to
+ <a href=#fire-a-click-event>fire a <code title=event-click>click</code> event</a> at
+ the element.</p>
</div>
Modified: source
===================================================================
--- source 2009-07-29 00:11:16 UTC (rev 3488)
+++ source 2009-07-29 00:27:00 UTC (rev 3489)
@@ -45688,25 +45688,17 @@
- <h5><dfn title="accesskey-command">Using the <code title="attr-accesskey">accesskey</code> attribute to define a command on a focusable element</dfn></h5>
+ <h5><dfn title="accesskey-command">Using the <code title="attr-accesskey">accesskey</code> attribute to define a command on other elements</dfn></h5>
- <p>An element that is <span>focusable</span>, has an <span>assigned
- access key</span>, and is neither an <code>a</code> element with an
- <code title="attr-hyperlink-href">href</code> attribute, a
- <code>button</code> element, an <code>input</code> element whose
- attribute is in one of the <span
- title="attr-input-type-submit">Submit Button</span>, <span
- title="attr-input-type-reset">Reset Button</span>, <span
- title="attr-input-type-button">Button</span>, <span
- title="attr-input-type-radio">Radio Button</span>, or <span
- title="attr-input-type-checkbox">Checkbox</span> states, an
- <code>option</code> element with an ancestor <code>select</code>
- element and either no <code title="attr-option-value">value</code>
- attribute or a <code title="attr-option-value">value</code>
- attribute that is not the empty string, a <code>command</code>
- element, nor a <code>bb</code> element, <span
+ <p>An element that has an <span>assigned access key</span> <span
title="concept-command">defines a command</span>.</p>
+ <p>If one of the other sections that define elements that <span
+ title="concept-command">define commands</span> define that this
+ element <span title="concept-command">defines a command</span>, then
+ that section applies to this element, and this section does
+ not. Otherwise, this section applies to that element.</p>
+
<p>The <span title="command-facet-Type">Type</span> of the command
is "command".</p>
@@ -45750,8 +45742,17 @@
of the command is always false. (The command is never checked.)</p>
<p>The <span title="command-facet-Action">Action</span> of the
- command is to run the <span>focusing steps</span> for the
- element.</p>
+ command, if the element has a defined <span>activation
+ behavior</span>, is to <span>run synthetic click activation
+ steps</span> on the element. Otherwise, if the element is
+ <span>focusable</span>, the <span
+ title="command-facet-Action">Action</span> of the command is to run
+ the <span>focusing steps</span> for the element and then to
+ <span>fire a <code title="event-click">click</code> event</span> at
+ the element. Otherwise, <span
+ title="command-facet-Action">Action</span> of the command is just to
+ <span>fire a <code title="event-click">click</code> event</span> at
+ the element.</p>
</div>
More information about the Commit-Watchers
mailing list