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

Kornel Lesiński kornel at geekhood.net
Tue Mar 13 09:22:07 PDT 2012

On Tue, 13 Mar 2012 15:57:57 -0000, Hugh Guiney <hugh.guiney at gmail.com>  

>> 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:


regards, Kornel Lesiński

More information about the whatwg mailing list