W3C home > Mailing lists > Public > www-validator@w3.org > December 2013

Re: why is role="navigation" wrong for a section

From: Michael[tm] Smith <mike@w3.org>
Date: Fri, 20 Dec 2013 21:00:28 +0900
To: Sören Piehler <spiehler@ferienwohnungen.de>
Cc: www-validator@w3.org
Message-ID: <20131220120025.GG36626@sideshowbarker>
Sören Piehler <spiehler@ferienwohnungen.de>, 2013-12-19 11:23 +0000:

> http://validator.w3.org/check?uri=http://www.ferienwohnungen.de/&outline=1
> Line 955, Column 47: Bad value navigation for attribute role on element section. 
> 	<section id="nav-extended" role="navigation">
> What is wrong with that, given the content of the section is navigational?!

The HTML spec requires the role value for <section> to be one of: alert,
alertdialog, application, contentinfo, dialog, document, log, main,
marquee, region, search, status or presentation.

If your <section> is navigational maybe it shouldn't be a <section> but
instead should be a <nav> or even just a <div>


Michael[tm] Smith http://people.w3.org/mike
Received on Friday, 20 December 2013 12:00:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:09 UTC