WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: detecting caption files?

for

From: Beranek, Nicholas
Date: Jan 11, 2018 8:40AM


I know that the axe method is to look for a <video> element and see if it has child <track> elements with a "kind" attribute of "captions". Therefore, I'm surprised it didn't detect an issue. I did a scan just now on a YouTube video with no caption and it called out "<video> elements must have captions" appropriately. Could it be the video wasn't HTML5 <video>? Or could it be that there actually was a <track kind="captions"> present but no captions were coming through on the video?

That's curious!

Nick Beranek
Capital One