-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweak how accesskey on legend works #3987
Changes from 6 commits
19fc441
b240785
88141ed
a7eab2c
32edc80
782dedc
9c1e740
964c8e8
9fdb4a0
3495b6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56825,7 +56825,7 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> { | |
<p>The <span data-x="command-facet-Label">Label</span> of the command is the string given by the | ||
element's <code>textContent</code> IDL attribute.</p> | ||
|
||
<p>The <span data-x="command-facet-AccessKey">AccessKey</span> of the command is the element's | ||
<p>The <span data-x="command-facet-AccessKey">Access Key</span> of the command is the element's | ||
<span>assigned access key</span>, if any.</p> | ||
|
||
<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> { | |
|
||
</ul> | ||
|
||
<p>The <span data-x="command-facet-AccessKey">AccessKey</span> of the command is the element's | ||
<p>The <span data-x="command-facet-AccessKey">Access Key</span> of the command is the element's | ||
<span>assigned access key</span>, if any.</p> | ||
|
||
<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> { | |
with <span data-x="strip and collapse ASCII whitespace">ASCII whitespace stripped and | ||
collapsed</span>.</p> | ||
|
||
<p>The <span data-x="command-facet-AccessKey">AccessKey</span> of the command is the element's | ||
<p>The <span data-x="command-facet-AccessKey">Access Key</span> of the command is the element's | ||
<span>assigned access key</span>, if any.</p> | ||
|
||
<p>The <span data-x="command-facet-HiddenState">Hidden State</span> of the command is true (hidden) | ||
|
@@ -56939,25 +56939,31 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> { | |
<h5><dfn data-x="legend-command">Using the <code data-x="attr-accesskey">accesskey</code> attribute | ||
on a <code>legend</code> element to define a command</dfn></h5> | ||
|
||
<p>A <code>legend</code> element that has an <span>assigned access key</span> and is a child of a | ||
<code>fieldset</code> element that has a descendant that is not a descendant of the | ||
<code>legend</code> element and is neither a <code>label</code> element nor a <code>legend</code> | ||
element but that <span data-x="concept-command">defines a command</span>, itself <span | ||
data-x="concept-command">defines a command</span>.</p> | ||
<p>A <code>legend</code> element <span data-x="concept-command">defines a command</span> if all of the following are true:</p> | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sentence doesn't work. |
||
<ul> | ||
<li><p>It has an <span>assigned access key</span>.</p></li> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So multiple Also, should there be a comma before "but"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They would, yes. Works in Safari/Chrome/Firefox/Edge. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still struggle with this. Perhaps make this a list:
|
||
<li><p>It is a child of a <code>fieldset</code> element.</p></li> | ||
<li><p>Its parent has a descendant that <span data-x="concept-command">defines a command</span> | ||
but is neither a <code>label</code> element nor a <code>legend</code> element.</p></li> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and is neither? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "and is" -> "that is", if I understand correctly?? |
||
</ul> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would really benefit from an example or two |
||
|
||
<p>The <span data-x="command-facet-Label">Label</span> of the command is the string given by the | ||
element's <code>textContent</code> IDL attribute.</p> | ||
|
||
<p>The <span data-x="command-facet-AccessKey">AccessKey</span> of the command is the element's | ||
<p>The <span data-x="command-facet-AccessKey">Access Key</span> of the command is the element's | ||
<span>assigned access key</span>.</p> | ||
|
||
<p>The <span data-x="command-facet-HiddenState">Hidden State</span>, <span | ||
data-x="command-facet-DisabledState">Disabled State</span>, and <span | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comma before "but"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sentence also doesn't quite seem to work. Is it the first element command that is neither a label or legend element or is it the first element command, but only if it's not a label or legend element? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, this still seems ambiguous to me. |
||
data-x="command-facet-Action">Action</span> facets of the command are the same as the respective | ||
facets of the first element in <span>tree order</span> that is a descendant of the parent of the | ||
<code>legend</code> element that <span data-x="concept-command">defines a command</span> but is not | ||
a descendant of the <code>legend</code> element and is neither a <code>label</code> nor a | ||
<code>legend</code> element.</p> | ||
facets of the first element in <span>tree order</span> that matches all of the following:</p> | ||
|
||
<ul> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The duplication here is unfortunate. I'd suggest modifying the previous
to
Then you can say "are the same as the respective facets of the something something." |
||
<li><p>It is a descendant of the parent of the <code>legend</code> element.</p></li> | ||
<li><p>It is neither a <code>label</code> nor a <code>legend</code> element.</p></li> | ||
<li><p>It <span data-x="concept-command">defines a command</span>.</p></li> | ||
</ul> | ||
|
||
|
||
<h5><dfn data-x="accesskey-command">Using the <code data-x="attr-accesskey">accesskey</code> | ||
|
@@ -56979,7 +56985,7 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> { | |
the <span data-x="command-facet-Label">Label</span> is the <code>textContent</code> of the element | ||
itself.</p> | ||
|
||
<p>The <span data-x="command-facet-AccessKey">AccessKey</span> of the command is the element's | ||
<p>The <span data-x="command-facet-AccessKey">Access Key</span> of the command is the element's | ||
<span>assigned access key</span>.</p> | ||
|
||
<p>The <span data-x="command-facet-HiddenState">Hidden State</span> of the command is true (hidden) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100 chars