HTML5 video element with multiple source children does not validate

25/08/11

Permalink 11:47:45 am, by jamie, 137 words, 279 views   English (CA)
Categories: Notes; Mins. worked: 0

HTML5 video element with multiple source children does not validate

According to the HTML5 spec, this is valid code:


<video controls="controls" width="320" height="256" id="gbua1"> 
                            <source src="http://lettuce.tapor.uvic.ca/~taprlans/media/gbua1.m4v" type="video/mp4; codecs="avc1, mp4a""></source> 
                            <source src="http://lettuce.tapor.uvic.ca/~taprlans/media/gbua1.ogv" type="video/ogg; codecs="theora, vorbis""></source> 
                            <p> 
                                <a href="http://lettuce.tapor.uvic.ca/~taprlans/media/gbua1.m4v">Download the video</a>.</p> 
                        </video>

According to the W3 validator, however, it's invalid. Removing one of the source elements gets rid of the validation error. This doesn't affect the performance of the video. So, it's just a case of waiting for the validator to catch up to the standard.

Pingbacks:

No Pingbacks for this post yet...

Lansdowne Lectures

This pilot project which will determine best practices for the digitizing, archiving and publishing of UVic's Lansdowne lecture series. The existing collection, primarily stored on videotape, will be digitized and archived in the first phase. The second phase will address the accessibility of the material to the general UVic population. The intent is to produce a web-based application that will allow users access to all of the lectures produced within the Faculty of Humanities.

Reports

Categories

June 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

XML Feeds