Alex Ross | 20 Apr 15:14 2012
Picon

WAI-ARIA Bug

With the following HTML5 code, I get an error on the "tablist" role
assignment to <ul>. However, according to the HTML5 spec at
http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#wai-aria
it says that it is a valid role for a <ul>.

Context:
<nav>
	<section role="tabpanel">
		<ul role="tablist" id="nav-tabs">
			<li role="tab"><a href="./?p=home" accesskey="1" title="Home">HOME</a></li>
			<li role="tab"><a href="./?p=gallery" accesskey="2"
title="Gallery">GALLERY</a></li>
			<li role="tab"><a href="./?p=user-list" accesskey="3" title="User
List">USER LIST</a></li>
			<li role="tab"><a href="./?p=events" accesskey="4"
title="Events">EVENTS</a></li>
			<li role="tab"><a href="./?p=videos" accesskey="5"
title="Videos">VIDEOS</a></li>
		</ul>
	</section>
	<hr>
	<section role="tabpanel">
		<ul role="tablist" id="doc-tabs">
			<li role="tab"><a href="./?p=home&amp;a=today" title="Latest
News">LATEST NEWS</a></li>
			<li role="tab"><a href="./?p=home&amp;a=dir" title="News
Archive">NEWS ARCHIVE</a></li>
		</ul>
	</section>
</nav>
(Continue reading)

Michael[tm] Smith | 28 Apr 22:35 2012
Picon

Re: WAI-ARIA Bug

Alex Ross <aross.nathan <at> gmail.com>, 2012-04-20 07:14 -0600:

> With the following HTML5 code, I get an error on the "tablist" role
> assignment to <ul>. However, according to the HTML5 spec at
> http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#wai-aria
> it says that it is a valid role for a <ul>.

I have fixed this in the unstable version of the validator. You can try it here:

  http://qa-dev.w3.org:8888/

I will try to get this landed in the production validator soon; in the mean
time if you test with http://qa-dev.w3.org:8888/ and find other
ARIA-related problems, please file bugs at http://bugzilla.validator.nu

  --Mike

--

-- 
Michael[tm] Smith http://people.w3.org/mike


Gmane