W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2012

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

From: Charles Pritchard <chuck@jumis.com>
Date: Mon, 12 Mar 2012 16:49:17 -0700
Message-ID: <4F5E8B7D.2080307@jumis.com>
To clarify:

"the presentation role may always be used.". The validator should not 
have thrown an error for role=presentation.

The section was made because: "exceptions are intended to prevent 
authors from making assistive technology products report nonsensical 
states that do not represent the actual state of the document".

These should only be warnings, not errors. The language "Authors must 
not" is inappropriate.


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.
Received on Monday, 12 March 2012 16:49:17 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC