[whatwg] Validator.nu: "Attribute role not allowed on element h2 at this point."

Charles Pritchard chuck at jumis.com
Mon Mar 12 16:46:29 PDT 2012

Ignore the error, the HTML5 spec does not reflect implementations in 
this section about ARIA.
The warning is not helpful to authors nor does it accurately describe 
the means in which ATs work with ARIA.


On 3/12/2012 4:27 PM, Hugh Guiney wrote:
> Why not?
> I have this in an otherwise-valid HTML5 + SVG 1.1 + MathML 2.0 + RDFa
> Lite 1.1 document:
> <hgroup>
>    <h1>Company Name</h1>
>    <h2 role="presentation">Tagline</h2>
> </hgroup>
> Spec says:
>> Authors must not set the ARIA role and aria-* attributes in a manner that conflicts with the
>> semantics described in the following table, except that the presentation role may always be used.

More information about the whatwg mailing list