-
Notifications
You must be signed in to change notification settings - Fork 125
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
Update text node definition #2274
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for wai-aria ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
accname/index.html
Outdated
@@ -285,8 +285,8 @@ <h2>Name and Description</h2> | |||
</dd> | |||
<dt>contents</dt> | |||
<dd> | |||
name is generated from the Text [=nodes=] associated with the [=element=]. Although this may be allowed in addition to "author" in some <a class="termref">roles</a>, "content" is used only | |||
if higher priority "author" features are not provided. Priority is defined by the <a href="#mapping_additional_nd_te">text equivalent computation</a> algorithm. | |||
name is generated from the [=exclusive Text node|text node=] associated with the [=element=]. Although this may be allowed in addition to "author" in some <a class="termref">roles</a>, |
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.
This changes from “the Text nodes” (plural) to “the text node” (singular)—is that intended? An accessible name can be generated from multiple text nodes.
For example, this URL—
data:text/html,<h1>Hello, <!--COMMENT-->world!</h1>
—plus this JavaScript—
getAccessibleName(document.querySelector("h1"))
// 'Hello, world!'
document.querySelector("h1").childNodes
// NodeList(3) [text, comment, text]
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.
Agreed "text nodes" should be plural, thank you @smockle. This does introduce inconsistency for the ReSpec linking; aliases are strongly discouraged (let alone differently aliased links pointing to the same thing) so curious if anyone disagrees with simply making it plural while in other cases we use "text node" as the link.
Changed as part of bde4f90.
Closes accname #212
Update text node definition using the DOM exclusive text node definition.