RE: Headers Are Confusing in HTML5

Hi Martin,

>>> Is the validator wrong?

Sometimes, maybe.

Also, e.g.

  <header role="toolbar" ..>

Is not explicitly defined as "forbidden" in https://specs.webplatform.org/html-aria/webspecs/master/

but validator throws an error doing so. 

There is some room for interpretation, unfortunately.

We all currently suffer from the impossibility to provide multiple roles for an HTML element and 
forcing the developers to use extra tags like

<header><span role="toolbar" .. 

as workaround.

Regards
Stefan

-----Original Message-----
From: Martin Janecke [mailto:w3.org@prlbr.com] 
Sent: Dienstag, 1. Dezember 2015 20:50
To: Steve Faulkner <faulkner.steve@gmail.com>
Cc: HTMLWG WG <public-html@w3.org>
Subject: Re: Headers Are Confusing in HTML5

On 01.12.15 19:33, Steve Faulkner wrote:
> you could also use:
> <header role="group">


This would be a good solution for me. Does that mean that setting
role="group" overwrites the implied banner role?

Unfortunately I got an error (and a warning) when testing this with
https://validator.w3.org/:


Info: The Content-Type was text/html. Using the HTML parser.

Info: Using the schema for HTML with SVG 1.1, MathML 3.0, RDFa 1.1, and
ITS 2.0 support.

Error: Bad value group for attribute role on element header.
>From line 4, column 1; to line 4, column 21
t</title>↩<header role="group">↩<h1>T

Warning: Element header does not need a role attribute.
>From line 4, column 1; to line 4, column 21
t</title>↩<header role="group">↩<h1>T

Is the validator wrong?

Thanks
Martin

Received on Wednesday, 2 December 2015 08:25:41 UTC