- Notifications
You must be signed in to change notification settings - Fork143
Resolving user agent must not statement and whitespace defs#1778
Resolving user agent must not statement and whitespace defs#1778
Conversation
Related tow3c/core-aam#128Fixes#1476- link to definition of whitespace in the aria-braillelabel and aria-brailleroledescription, aria-roledescription sections- remove reference to whitespace from user agents must not aria-roledescription requirement- remove author error correction User Agents MUST NOT expose prohibited ARIA attributes statement from correcting for author errors section.- adds authors MUST NOT specify aria-roledescription on elements with roles where the attribute is prohibited.- removed non-normative "should" from aria-brailleroledescription- adds authors MUST NOT use aria-brailleroledescription where prohibited - adds authors MUST NOT use aria-label and aria-labelledby where prohibited
jnurthen commentedAug 18, 2022
@jcsteh can you please review this. |
Uh oh!
There was an error while loading.Please reload this page.
cookiecrook left a comment
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.
approving after comment threads resolved
Uh oh!
There was an error while loading.Please reload this page.
index.html Outdated
| <p><a>Defines</a> a string value that labels the current element. See related <pref>aria-labelledby</pref>.</p> | ||
| <p>The purpose of <pref>aria-label</pref> is the same as that of <pref>aria-labelledby</pref>. It provides the user with a recognizable name of the object. The most common <a>accessibility <abbr title="Application Programing Interfaces">API</abbr></a> mapping for a label is the <a>accessible name</a> property.</p> | ||
| <p>If the label text is available in the DOM (i.e. typically visible text content), authors SHOULD use <pref>aria-labelledby</pref> and SHOULD NOT use <pref>aria-label</pref>. There may be instances where the name of an element cannot be determined programmatically from the DOM, and there are cases where referencing DOM content is not the desired user experience. Most host languages provide an attribute that could be used to name the element (e.g., the <code>title</code> attribute in [[HTML]]), yet this could present a browser tooltip. In the cases where DOM content or a tooltip is undesirable, authors MAY set the accessible name of the element using <pref>aria-label</pref>. As required by the <a href="#textalternativecomputation">accessible name and description computation</a>, user agents give precedence to <pref>aria-labelledby</pref> over <pref>aria-label</pref> when computing the accessible name property.</p> | ||
| <p>If the label text is available in the DOM (i.e. typically visible text content), authors SHOULD use <pref>aria-labelledby</pref> and SHOULD NOT use <pref>aria-label</pref>. There may be instances where the name of an element cannot be determined programmatically from the DOM, and there are cases where referencing DOM content is not the desired user experience. Most host languages provide an attribute that could be used to name the element (e.g., the <code>title</code> attribute in [[HTML]]), yet this could present a browser tooltip. In the cases where DOM content or a tooltip is undesirable, authors MAY set the accessible name of the element using <pref>aria-label</pref>, if the element does not <a href="#prohibitedattributes">prohibit</a> use of the attribute. Authors MUST NOT specify <code>aria-label</code> on an element which has an explicit or implicit WAI-ARIA role where <code>aria-label</code> is <a href="#prohibitedattributes">prohibited</a>. As required by the <a href="#textalternativecomputation">accessible name and description computation</a>, user agents give precedence to <pref>aria-labelledby</pref> over <pref>aria-label</pref> when computing the accessible name property.</p> |
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.
In the cases where DOM content or a tooltip is undesirable, authors MAY set the accessible name of the element using <pref>aria-label</pref>, if the element does not <a href="#prohibitedattributes">prohibit</a> use of the attribute. Authors MUST NOT specify <code>aria-label</code> on an element which has an explicit or implicit WAI-ARIA role where <code>aria-label</code> is <a href="#prohibitedattributes">prohibited</a>.This felt redundant while reading... I looked back and realized it was not.
Reversing the two sentence may resolve it? E.g. list the rule first then exception, rather than exception before the rule.
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.
made a commit to try to address this -7f6baae
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: James Craig <cookiecrook@users.noreply.github.com>
Co-authored-by: James Craig <cookiecrook@users.noreply.github.com>
@cookiecrook does this reordering help? I think it does, but just wanted to verify. Thank you.
- link to definition of whitespace in the aria-braillelabel and aria-brailleroledescription, aria-roledescription sections- remove reference to whitespace from user agents must not aria-roledescription requirement- remove author error correction User Agents MUST NOT expose prohibited ARIA attributes statement from correcting for author errors section.- adds authors MUST NOT specify aria-roledescription on elements with roles where the attribute is prohibited.- removed non-normative "should" from aria-brailleroledescription- adds authors MUST NOT use aria-brailleroledescription where prohibited - adds authors MUST NOT use aria-label and aria-labelledby where prohibitedCo-authored-by: James Craig <cookiecrook@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Related tow3c/core-aam#128
Fixes#1476
Preview |Diff