In a website I'm working on right now, I have a section element which type is set to "main
". According to WAI-ARIA, the section
element can use main
as role
attribute (role="main"
).
However, when I run my site through the W3C validator, I get a "Bad value main for attribute role on element section." error. I used the main
value in another website previously, and it did pass the validation, but now it's no longer valid, reporting the same error.
Has the HTML5 specification changed recently and took out the main
value? Should I believe the WAI-ARIA or the W3C validator? Is the WAI-ARIA page out of date? Should I just keep the section
element without any role attribute (which will revert to the "region" default value)?
Any thoughts and tips on this would be appreciated :)