@@ -56825,7 +56825,7 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {
56825
56825
<p>The <span data-x="command-facet-Label">Label</span> of the command is the string given by the
56826
56826
element's <code>textContent</code> IDL attribute.</p>
56827
56827
56828
- <p>The <span data-x="command-facet-AccessKey">AccessKey </span> of the command is the element's
56828
+ <p>The <span data-x="command-facet-AccessKey">Access Key </span> of the command is the element's
56829
56829
<span>assigned access key</span>, if any.</p>
56830
56830
56831
56831
<p>The <span data-x="command-facet-HiddenState">Hidden State</span> of the command is true (hidden)
@@ -56891,7 +56891,7 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {
56891
56891
56892
56892
</ul>
56893
56893
56894
- <p>The <span data-x="command-facet-AccessKey">AccessKey </span> of the command is the element's
56894
+ <p>The <span data-x="command-facet-AccessKey">Access Key </span> of the command is the element's
56895
56895
<span>assigned access key</span>, if any.</p>
56896
56896
56897
56897
<p>The <span data-x="command-facet-HiddenState">Hidden State</span> of the command is true (hidden)
@@ -56917,7 +56917,7 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {
56917
56917
with <span data-x="strip and collapse ASCII whitespace">ASCII whitespace stripped and
56918
56918
collapsed</span>.</p>
56919
56919
56920
- <p>The <span data-x="command-facet-AccessKey">AccessKey </span> of the command is the element's
56920
+ <p>The <span data-x="command-facet-AccessKey">Access Key </span> of the command is the element's
56921
56921
<span>assigned access key</span>, if any.</p>
56922
56922
56923
56923
<p>The <span data-x="command-facet-HiddenState">Hidden State</span> of the command is true (hidden)
@@ -56939,25 +56939,46 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {
56939
56939
<h5><dfn data-x="legend-command">Using the <code data-x="attr-accesskey">accesskey</code> attribute
56940
56940
on a <code>legend</code> element to define a command</dfn></h5>
56941
56941
56942
- <p>A <code>legend</code> element that has an <span>assigned access key</span> and is a child of a
56943
- <code>fieldset</code> element that has a descendant that is not a descendant of the
56944
- <code>legend</code> element and is neither a <code>label</code> element nor a <code>legend</code>
56945
- element but that <span data-x="concept-command">defines a command</span>, itself <span
56946
- data-x="concept-command">defines a command</span>.</p>
56942
+ <p>A <code>legend</code> element <span data-x="concept-command">defines a command</span> if all of
56943
+ the following are true:</p>
56944
+
56945
+ <ul>
56946
+ <li><p>It has an <span>assigned access key</span>.</p></li>
56947
+
56948
+ <li><p>It is a child of a <code>fieldset</code> element.</p></li>
56949
+
56950
+ <li><p>Its parent has a descendant that <span data-x="concept-command">defines a command</span>
56951
+ that is neither a <code>label</code> element nor a <code>legend</code> element. This element,
56952
+ if it exists, is <dfn>the <code>legend</code> element's <code>accesskey</code>
56953
+ delegatee</dfn>.</p></li>
56954
+ </ul>
56947
56955
56948
56956
<p>The <span data-x="command-facet-Label">Label</span> of the command is the string given by the
56949
56957
element's <code>textContent</code> IDL attribute.</p>
56950
56958
56951
- <p>The <span data-x="command-facet-AccessKey">AccessKey </span> of the command is the element's
56959
+ <p>The <span data-x="command-facet-AccessKey">Access Key </span> of the command is the element's
56952
56960
<span>assigned access key</span>.</p>
56953
56961
56954
56962
<p>The <span data-x="command-facet-HiddenState">Hidden State</span>, <span
56955
56963
data-x="command-facet-DisabledState">Disabled State</span>, and <span
56956
56964
data-x="command-facet-Action">Action</span> facets of the command are the same as the respective
56957
- facets of the first element in <span>tree order</span> that is a descendant of the parent of the
56958
- <code>legend</code> element that <span data-x="concept-command">defines a command</span> but is not
56959
- a descendant of the <code>legend</code> element and is neither a <code>label</code> nor a
56960
- <code>legend</code> element.</p>
56965
+ facets of <span>the <code>legend</code> element's <code>accesskey</code> delegatee</span>.</p>
56966
+
56967
+ <div class="example">
56968
+ <p>In this example, the <code>legend</code> element specifies an <code
56969
+ data-x="attr-accesskey">accesskey</code>, which, when activated, will delegate to the
56970
+ <code>input</code> element inside the <code>legend</code> element.</p>
56971
+
56972
+ <pre><code class="html" data-x=""><fieldset>
56973
+ <legend accesskey=p>
56974
+ <label>I want <input name=pizza type=number step=1 value=1 min=0>
56975
+ pizza(s) with these toppings</label>
56976
+ </legend>
56977
+ <label><input name=pizza-cheese type=checkbox checked> Cheese</label>
56978
+ <label><input name=pizza-ham type=checkbox checked> Ham</label>
56979
+ <label><input name=pizza-pineapple type=checkbox> Pineapple</label>
56980
+ </fieldset></code></pre>
56981
+ </div>
56961
56982
56962
56983
56963
56984
<h5><dfn data-x="accesskey-command">Using the <code data-x="attr-accesskey">accesskey</code>
@@ -56979,7 +57000,7 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {
56979
57000
the <span data-x="command-facet-Label">Label</span> is the <code>textContent</code> of the element
56980
57001
itself.</p>
56981
57002
56982
- <p>The <span data-x="command-facet-AccessKey">AccessKey </span> of the command is the element's
57003
+ <p>The <span data-x="command-facet-AccessKey">Access Key </span> of the command is the element's
56983
57004
<span>assigned access key</span>.</p>
56984
57005
56985
57006
<p>The <span data-x="command-facet-HiddenState">Hidden State</span> of the command is true (hidden)
0 commit comments