refactor(template-require-presentational-children): source role list from aria-query#26
Closed
refactor(template-require-presentational-children): source role list from aria-query#26
Conversation
…from aria-query Replaces a hand-maintained list of 14 roles with a derivation from aria-query's role.childrenPresentational flag. Coverage grows from 14 to 16 roles — aria-query also includes doc-pagebreak (DPUB-ARIA) and graphics-symbol (Graphics-ARIA), both of which spec-require presentational children. Previously those would have been silently accepted. Spec: WAI-ARIA 1.2 — Children Presentational https://www.w3.org/TR/wai-aria-1.2/#childrenArePresentational
🏎️ Benchmark Comparison
Full mitata output |
Owner
Author
|
Moved upstream to ember-cli#2722. See that PR for ongoing review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the hand-maintained list of 14 roles that require presentational children with a derivation from
aria-query:Before/after
doc-pagebreak,graphics-symbol)aria-query'schildrenPresentationalflag is set on the 16 roles that the WAI-ARIA 1.2 + DPUB-ARIA + Graphics-ARIA specs mark with the Children Presentational rule.Net behavior change: previously
<div role="doc-pagebreak"><span>text</span></div>and<svg role="graphics-symbol"><text>…</text></svg>were silently accepted despite being spec-invalid. They now correctly flag.Spec reference
Part of the aria-query cleanup campaign — see also #11, #14, #25.