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
Classification: Unclassified
Component: ARIA
All All
: P2 normal
Assigned To: Michael[tm] Smith
Depends on:
  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:


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, 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:

Comment 2 Michael[tm] Smith 2009-12-02 04:34:31 CET
This is now fixed in the source. You can test here:
Comment 3 Michael[tm] Smith 2009-12-02 04:40:50 CET
syntax r505

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).