Bugzilla – Bug 667
Validator doesn't recognize the role attribute on section elements
Last modified: 2009-12-02 04:40:50 CET
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.
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
This is now fixed in the source. You can test here: http://qa-dev.w3.org:8888/?doc=http%3A%2F%2Fjsbin.com%2Feveru
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).