w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
181 stars 49 forks source link

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

Closed stevefaulkner closed 2 years ago

stevefaulkner commented 2 years ago

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 https://github.com/validator/validator/issues/1282 as an example. I suggest the allowed descendants rule for role=heading be tightened up.

scottaohara commented 2 years ago

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