This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22165 - role=menuitem not allowed on li
Summary: role=menuitem not allowed on li
Status: RESOLVED FIXED
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL: http://www.w3.org/html/wg/drafts/html...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-26 14:33 UTC by steve faulkner
Modified: 2015-07-17 04:41 UTC (History)
4 users (show)

See Also:


Attachments

Description steve faulkner 2013-05-26 14:33:24 UTC
I have updated the spec to allow role=menuitem on <li> as I believe it was an oversight that it was not listed as both menuitemcheckbox and menuitemradiobutton are allowed. I looked back at history of bugs /issues related to aria integration and could not find any discussion of it. when you get time can you modify the conformance rule to allow <li role="menuitem"> thanks!
Comment 1 Michael[tm] Smith 2013-06-26 13:30:11 UTC
Fixed and pushed to the validator. Thanks
Comment 2 Bruno Racineux 2015-07-17 02:59:39 UTC
(In reply to Michael[tm] Smith from comment #1)
> Fixed and pushed to the validator. Thanks

I am still getting an error on the last element of the markup below when in a sub-menu.

Error: Bad value menuitem for attribute role on element li.
<li role="menuitem" id="m72">

It looks like the problem was addressed inside <ul> but not <ol>. 

Markup in question:

<ul role="menubar">
  <li role="menuitem" aria-haspopup="true">
      <a href="" class="ma fp expand">Sub-menu<b class="caret"></b></a>
      <ol role="menu" class="mo" aria-labelledby="m54">
        <li role="menuitem" id="m72">
Comment 3 Michael[tm] Smith 2015-07-17 04:41:21 UTC
(In reply to Bruno Racineux from comment #2)
> (In reply to Michael[tm] Smith from comment #1)
> > Fixed and pushed to the validator. Thanks
> 
> I am still getting an error on the last element of the markup below when in
> a sub-menu.
> 
> Error: Bad value menuitem for attribute role on element li.
> <li role="menuitem" id="m72">
> 
> It looks like the problem was addressed inside <ul> but not <ol>. 

Yep. Thanks for catching it.

(re)Fixed now and pushed to https://validator.w3.org/nu/