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

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

From: Hugh Guiney <hugh.guiney@gmail.com>
Date: Tue, 13 Mar 2012 11:57:57 -0400
Message-ID: <CAEHyr+aaN2ADMi4ZWynYpu3eCriVheFL6s+_cn1UtfZN2QiRrQ@mail.gmail.com>
On Mon, Mar 12, 2012 at 8:52 PM, Ian Hickson <ian at hixie.ch> 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.
Received on Tuesday, 13 March 2012 08:57:57 UTC

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