W3C home > Mailing lists > Public > www-validator@w3.org > November 2011

[VE][html5] Incorrect error message for ARIA role menuitem validation

From: brothercake <cake@brothercake.com>
Date: Mon, 14 Nov 2011 01:31:18 +0000
Message-Id: <9B9AEB1F-9896-4F2F-9C67-6802325B5FC9@brothercake.com>
To: www-validator@w3.org

I can't give a public URI for this example, as I was testing a local  
page.  But the markup in question looked like this:

	<ul role="menubar">
		<li role="menuitem"><strong>Home</strong></li>
		<li role="menuitem"><a href="#">Portfolio</a></li>
		<li role="menuitem"><a href="#">Stuff</a></li>
		<li role="menuitem"><a href="#">About</a></li>
		<li role="menuitem"><a href="#">Contact</a></li>

The validator flagged multiple errors for that markup, each with the  
error message "An element with role=menuitem requires role=menu on the  

However that is not correct -- an element with role=menuitem can have  
either "menu" or "menubar" as its parent role.


James Edwards
Received on Monday, 14 November 2011 08:45:34 UTC

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