Skip to content
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

feat: update step 2F to exclude nodes referenced by aria-actions #235

Closed
wants to merge 1 commit into from

Conversation

smhigley
Copy link

@smhigley smhigley commented Apr 19, 2024

Context at w3c/aria#1805, and this PR should not be merged before the ARIA PR.


Preview | Diff

Comment on lines +511 to +512
<li id="comp_name_from_content_find_child_actions">If the <code>current node</code> has an <code>aria-actions</code> [=attribute=] with an IDREF matching the rendered child node, skip steps b-d for this child node.</li>
<li>If the <code>current node</code> has an <code>aria-actions</code> [=attribute=] with at least one valid IDREF matching any of the descendents of the rendered child node, exclude the referenced descendants from the name from content of the <code>current node</code>.</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Can't use IDREF like this since it excludes the static element array plan to support references across document boundaries... (e.g. el.ariaActionsElements)
  2. For both clarity and longevity, we shouldn't reference steps numberings like "b–d"… Reference each step by name if needed.
  3. This step seems like it would be a little more complicated than the proposed wording. For example, it's missing a reference to the current accname traversal. We may need to include all child nodes and then loop through with a set of exclusions (contained action reference being one of many) that remove them individually from the child nodes list. (I'm sorry I don't have a specific working suggestion.)

Copy link
Contributor

@cookiecrook cookiecrook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelSumner
Copy link
Contributor

This PR has been moved to the mono repo: w3c/aria#2208

@MelSumner MelSumner closed this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants