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

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

From: Michael[tm] Smith <mike@w3.org>
Date: Mon, 14 Nov 2011 19:41:26 +0900
To: brothercake <cake@brothercake.com>
Cc: www-validator@w3.org
Message-ID: <20111114104125.GE23569@sideshowbarker>
Thanks for reporting this. I think I have it fixed now.

  --Mike

brothercake <cake@brothercake.com>, 2011-11-14 01:31 +0000:

> Hi,
> 
> 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>
> 	</ul>
> 
> The validator flagged multiple errors for that markup, each with the error
> message "An element with role=menuitem requires role=menu on the parent"
> 
> However that is not correct -- an element with role=menuitem can have either
> "menu" or "menubar" as its parent role.
> 
> 
> 
> thanks,
> 
> James Edwards

-- 
Michael[tm] Smith
http://people.w3.org/mike/+
Received on Monday, 14 November 2011 10:41:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:49 GMT