NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 1011 - Accept multiple roles in a role attribute
Accept multiple roles in a role attribute
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: ARIA
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-21 19:29 CET by Jukka K. Korpela
Modified: 2014-12-21 19:29 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jukka K. Korpela 2014-12-21 19:29:24 CET
Markup like <h1 role="heading button">foo</h1> causes the following error message:

Error: Discarding superfluous token button from value of attribute role. Browsers only process the first token found that is a defined ARIA non-abstract role.

However, the W3C HTML5 Rec. says about the role attribute:

The attribute, if specified, must have a value that is a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to.

The WAI-ARIA role that an HTML element has assigned to it is the first non-abstract role found in the list of values generated when the role attribute is split on spaces.

http://www.w3.org/TR/html5/dom.html#aria-role-attribute

Thus, the message should not be an error message. A warning might be issued.