Consider clarifying / simplifying image rules #424
Labels
Allowed aria-* attributes
Allowed roles
Pertaining to the allowed roles of HTML elements
Clarification needed
Revise or expand the information provided
Milestone
The
img
element is presently represented three times in the element table depending on if it has analt
with or without a value, or if thealt
is missing.While an
img
requires analt
attribute to produce valid HTML,aria-label
oraria-labelledby
could be used to name the image instead. These rules are more about whether the image is named or not, rather than the exact state of thealt
attribute.These rules could likely be simplified down to a single entry in the table. The allowed
aria-*
attributes should be reviewed in context to what the native HTML element even allows. e.g.,aria-owns
likely doesn't make sense as animg
can have no children, so it thus cannot 'own' anything.Thoughts @stevefaulkner @patrickhlauke ??
The text was updated successfully, but these errors were encountered: