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

H1-H6 AND ROLE=HEADING allowed descendants differ #388

Closed
stevefaulkner opened this issue Dec 9, 2021 · 1 comment · Fixed by #393
Closed

H1-H6 AND ROLE=HEADING allowed descendants differ #388

stevefaulkner opened this issue Dec 9, 2021 · 1 comment · Fixed by #393

Comments

@stevefaulkner
Copy link
Collaborator

h1-h6 allows phrasing content
https://html.spec.whatwg.org/multipage/dom.html#phrasing-content-2

aria in html role=heading allows

Flow content but with no main element, heading content, sectioning content, or sectioning roots descendants.

https://www.w3.org/TR/html-aria/#allowed-descendants-of-aria-roles

which results in less than optimal markup patterns being allowed. refer to validator/validator#1282 as an example. I suggest the allowed descendants rule for role=heading be tightened up.

@scottaohara
Copy link
Member

related to the work of #362 to make these normative requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants