NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 667 - Validator doesn't recognize the role attribute on section elements
Validator doesn't recognize the role attribute on section elements
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: ARIA
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-09 15:29 CEST by Robert Nyman
Modified: 2009-12-02 04:40 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Nyman 2009-10-09 15:29:29 CEST
According to the spec at http://www.whatwg.org/specs/web-apps/current-work/#annotations-for-assistive-technology-products-%28aria%29, a number of role attributes should be valid for the section element.

However, the validator doesn't recognize the role attribute at all.
Comment 1 Remy Sharp 2009-10-09 15:32:56 CEST
For reference here's a simple page failing validation:

http://validator.w3.org/check?uri=http%3A%2F%2Fjsbin.com%2Feveru

and

http://html5.validator.nu/?doc=http%3A%2F%2Fjsbin.com%2Feveru
Comment 2 Michael[tm] Smith 2009-12-02 04:34:31 CET
This is now fixed in the source. You can test here:

http://qa-dev.w3.org:8888/?doc=http%3A%2F%2Fjsbin.com%2Feveru
Comment 3 Michael[tm] Smith 2009-12-02 04:40:50 CET
syntax r505
http://whattf.browse.cvsdude.com/syntax?view=rev&revision=505

TODO: This just adds common.attrs.aria to section. This should eventually either be replaced by a change to the rnc schema that more properly expresses the constraints, or be supplemented with additional constraint-checking in the assertions code (in order to check that the value of the role element is constrained to region, document, application, contentinfo, main, search, alert, dialog, alertdialog, status, or log).