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

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

From: Kornel Lesiński <kornel@geekhood.net>
Date: Tue, 13 Mar 2012 16:22:07 -0000
Message-ID: <op.wa4ae5q5te2ec8@aimac.local>
On Tue, 13 Mar 2012 15:57:57 -0000, Hugh Guiney <hugh.guiney at gmail.com>  
wrote:

>> The validator is probably just not up to date.
>>
>> Note that that in this case the validator is probably right. If it's  
>> just presentational, why are you using <h2>? It doesn't seem  
>> presentational to me. I think you are incorrectly using  
>> role=presentational here.
>
> I am using it because VoiceOver does not understand <hgroup>/document
> outlines yet, and so announces two headings when there should only be
> one. It is not ideal markup; I'm merely trying to provide a better
> experience for AT users until new elements and parsing models are
> understood.

Dusting off <hsub> proposal, which doesn't have that problem:

http://www.w3.org/html/wg/wiki/ChangeProposals/hSub

-- 
regards, Kornel Lesi?ski
Received on Tuesday, 13 March 2012 09:22:07 UTC

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