WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Does an accessible video player that works correctly in all major browsers exist?

for

From: Joe Chidzik
Date: Jun 11, 2014 6:24AM


> If I set role="status" on the progress bar, it behaves very nicely across all
> screenreaders and browsers I tested - if the progress bar is on focus or being
> moved, it gives you a quick update every ten percent, if not, it's quiet.
> Perfect! Except.. the W3 validator says: "Bad value status for attribute role on
> element progress".
>
> I know the general feeling is "accessibility over validity every time", but it's a
> shame as that's the only fail in a page I worked hard to get valid.
> What say you?

Can you just write that attribute namevalue into the page at runtime via JavaScript? This issue would not then prevent validation as the validator will check the page pre-JavaScript. Bit hacky admittedly, but then I don't see why an attribute value should fail validation anyway - any unrecognised attribute values are just ignored by browsers afaik.

Joe