4

I pretty much make sure my website(s) always validates.

So today, after changing a certain item on my website, I ran the W3C validator once again.

And suddenly got about 20 errors - which weren't there on thursday (2 days ago).

(For my validation I chose HTML5 / UTF8 - just like last time)

For some reason I now get a:

Element li is missing one or more of the following attributes: aria-checked, aria-expanded, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role."-error for every list item I use.

Is ARIA mandatory, and if so why do I suddenly get these errors - when I did not two days ago?

It could be that I'm overlooking something. My website can be found here: http://www.project-voorbeeld3.be/

I have to admit, ARIA is new to me at this point - but I've looked through quite a lot of articles about it, and I just can't seem to figure out what is wrong.

Any clues would be welcome!

Volker E.
  • 5,911
  • 11
  • 47
  • 64
user1449515
  • 55
  • 1
  • 1
  • 7
  • 1
    Yesterday I have 0 errors, today I have 33 errors because of WAI-ARIA attributes. It seems like today http://validator.w3.org/ tagged missing ARIA as error. – trante Apr 20 '13 at 17:45
  • After looking into it a little further Aria seems to be optional, to make HTML more accessible. So - I don't really see a reason for it to flag as an error. Is it just the W3C validator going a little far suddenly? – user1449515 Apr 20 '13 at 17:46
  • 2
    Duplicate: http://stackoverflow.com/q/16122893/1591669 – unor Apr 20 '13 at 18:55

3 Answers3

4

Seems like a false alarm (just somebody's mistake). Found this message from http://lists.w3.org

1

Making ARIA mandatory in HTML5 would be utterly stupid. There are sites that do not in fact need any ARIA functionality, and this would mean that all the webpages that used to validate have to be re-done: an awful amount of pointless work. On the other hand, it is rather difficult to ignore the ARIA errors while I am actually using the validator to find real problems in my HTML. ARIA is good but it must be optional, not mandatory. I hope they are goint to remove that nonsense from the validator soon.

  • Well I reported it to Bugzilla. I flagged it as a bug. Not sure what they will do with it. If it is suddenly mandatory, it'll be a lot of extra work... – user1449515 Apr 20 '13 at 18:13
0

As of today, it seems like ARIA related HTML5 errors are disappeared.

ARIA validation can be made from this website: http://validator.w3.org/nu/
But note this warning:

The W3C Nu Markup Validation Service support for ARIA checking is a work in progress, so cannot be wholly relied upon to provide the correct results.

trante
  • 33,518
  • 47
  • 192
  • 272