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 25219 - Remove aria restrictions from table elements per HTML specs
Summary: Remove aria restrictions from table elements per HTML specs
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-31 23:32 UTC by Takeshi Kurosawa
Modified: 2014-04-03 09:33 UTC (History)
2 users (show)

See Also:


Attachments
Patch (syntax module) (2.26 KB, application/octet-stream)
2014-03-31 23:32 UTC, Takeshi Kurosawa
Details

Description Takeshi Kurosawa 2014-03-31 23:32:45 UTC
Created attachment 1461 [details]
Patch (syntax module)

HTML5 and HTML 5.1 don't have aria restrictions for table elements (caption, colgroup, col, thead, tfoot, and tbody).

http://www.w3.org/html/wg/drafts/html/master/dom.html#wai-aria
http://www.w3.org/html/wg/drafts/html/CR/dom.html#wai-aria

Thus below should be OK:

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<table role="grid" aria-readonly="true">
<thead role="rowgroup">
<tr role="row"><td role="gridcell">thead</td></tr>
</thead>
<tfoot role="rowgroup">
<tr role="row"><td role="gridcell">tfoot</td></tr>
</tfoot>
<tbody role="rowgroup">
<tr role="row"><td role="gridcell">tbody</td></tr>
</tbody>
</table>
</body>
</html>

However Nu Markup Checker produces following errors:

Error: Bad value rowgroup for attribute role on element thead.
Error: Bad value rowgroup for attribute role on element tfoot.
Error: Bad value rowgroup for attribute role on element tbody.

I think aria restrictions for table elements should be removed.
Comment 1 Michael[tm] Smith 2014-04-03 05:11:13 UTC
Steve,

Can you confirm that the validator is currently not conforming to the spec here?
That is, e.g., <thead role="rowgroup">, <tfoot role="rowgroup">, and <tbody role="rowgroup"> should not be errors?
Comment 2 steve faulkner 2014-04-03 05:38:41 UTC
(In reply to Michael[tm] Smith from comment #1)
> Steve,
> 
> Can you confirm that the validator is currently not conforming to the spec
> here?
> That is, e.g., <thead role="rowgroup">, <tfoot role="rowgroup">, and <tbody
> role="rowgroup"> should not be errors?

hi Mike,

that's correct role=rowgroup is conforming in this context. There are no restrictions on the roles that table related elements can have in HTML http://www.w3.org/html/wg/drafts/html/master/dom.html#wai-aria

ARIA rolegroup specifics http://www.w3.org/TR/wai-aria/roles#rowgroup for your baroqueness appreciation club ;-)
Comment 3 Michael[tm] Smith 2014-04-03 09:33:09 UTC
Fixed. https://github.com/validator/syntax/commit/6eebd88501adc53e0be56be807d13632085e935a

Kurosawa-san, thanks for catching this and reporting it.