Repository navigation
clarification: text nodes and allowed accessibility child roles #2929
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -1178,8 +1178,10 @@ <h3><dfn>Prohibited</dfn> States and Properties</h3> | |
| <h3>Allowed Accessibility Child Roles</h3> | ||
| <p> | ||
| A list of roles which are allowed on an <a>accessibility child</a> of the element with this <a>role</a>. If the list is not empty, authors MUST only add <a>accessibility children</a> with | ||
| allowed roles. For example, an element with the role <rref>list</rref> allows <a>accessibility children</a> with the role <rref>listitem</rref>, but does not allow | ||
| <a>accessibility children</a> with the role <rref>option</rref>. If the list is empty, then there are no restrictions on accessibility child roles. | ||
| allowed roles; in particular, text nodes are not allowed in this case. If the list is empty, then there are no restrictions on accessibility children; in particular, text nodes are allowed in this case. | ||
| </p> | ||
| <p>For example, an element with the role <rref>list</rref> allows <a>accessibility children</a> with the role <rref>listitem</rref>, but does not allow | ||
| <a>accessibility children</a> with the role <rref>option</rref>. Reversely, an element with the role <rref>article</rref> has no restrictions and can contain any combination of elements and text nodes permitted by the host language. | ||
|
Contributor
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. "…except for option?" Again. I think this is confusing enough that it should explain why.
Member
Author
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 don't understand the "…except for option?" bit. Could you elaborate what part is confusing? (Is it perhaps mostly the unchanged language with the list/option example?) |
||
| </p> | ||
| <p> | ||
| Descendants which are not children of an element ancestor are not constrained by <em>allowed accessibility child roles</em>. For example, an <code>image</code> is not an | ||
|
|
||
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.
So
but…
Any prose clarification should explain why. Presumably you may have been thinking about an example like this?
But I'm not sure from diff alone. Nor am I certain why text nodes were called out separately from a paragrpagh node, for example.
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.
No,
list(only) haslistitemin its allowed child roles, so text nodes are not allowed.