Bugzilla – Bug 1011
Accept multiple roles in a role attribute
Last modified: 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.