NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 940 - role="tablist" always raise error
role="tablist" always raise error
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: ARIA
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
Depends on:
Blocks: 819
  Show dependency treegraph
 
Reported: 2012-09-10 11:22 CEST by Takeshi Kurosawa
Modified: 2013-04-20 18:06 CEST (History)
1 user (show)

See Also:


Attachments
Patch for validator/syntax (541 bytes, patch)
2012-09-10 11:22 CEST, Takeshi Kurosawa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Takeshi Kurosawa 2012-09-10 11:22:45 CEST
Created attachment 223 [details]
Patch for validator/syntax

role="tablist" always raise syntax error on Validator.nu.
Because the relaxng file omits "common.attrs.aria |= aria.tablist".

How to reproduce:
Paste following html in http://html5.validator.nu/ text area.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>role="tablist"</title>
</head>
<body>
<ul role="tablist">
<li role="tab">Tab 1</li>
<li role="tab">Tab 2</li>
</ul>
<ul>
<li role="tabpanel">Tab panel 1</li>
<li role="tabpanel">Tab panel 2</li>
</ul>
</body>
</html>

Error I got:
Error: Bad value tablist for attribute role on element ul.
Comment 1 Michael[tm] Smith 2013-04-20 18:06:16 CEST
Fixed in the validator sources. You can test at http://validator.w3.org/nu/