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 20756 - The roles columnheader and rowheader are not recognized as valid children of role row
Summary: The roles columnheader and rowheader are not recognized as valid children of ...
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: 2013-01-24 14:54 UTC by Gez Lemon
Modified: 2013-04-21 02:18 UTC (History)
2 users (show)

See Also:


Attachments

Description Gez Lemon 2013-01-24 14:54:09 UTC
When either role="columnheader" or role="rowheader" are used in an element with role="row", the validator gives the following error: "Only elements with role=gridcell are allowed as children of an element with role=row". For example:

<div role="row">
  <span role="columnheader">Option</span>
  <span role="columnheader">Respondents</span>
</div>
Comment 1 Michael[tm] Smith 2013-04-21 02:18:55 UTC
(In reply to comment #0)
> When either role="columnheader" or role="rowheader" are used in an element
> with role="row", the validator gives the following error: "Only elements
> with role=gridcell are allowed as children of an element with role=row". For
> example:
> 
> <div role="row">
>   <span role="columnheader">Option</span>
>   <span role="columnheader">Respondents</span>
> </div>

That part is fixed now. Please test at http://validator.w3.org/nu/ and let me know if you see any problems.

I do notice that if I try that markup fragment as-is, I get the following error reported:

Error: An element with role=row requires role=treegrid or role=grid on the parent or grandparent.

I assume that error message is correct. If it's not please reopen this bug or file a new one.