W3C home > Mailing lists > Public > www-validator@w3.org > October 2011

"Element source not allowed as child of element audio in this context."

From: Kristjan <kristjanile@gmail.com>
Date: Sat, 22 Oct 2011 23:36:38 +0300
To: <www-validator@w3.org>
Message-ID: <262A9E3C3A47435CAB6D83234D640B1F@kristjan>
Hi again!






HTML5 validator Error:


Line 10, Column 50: Element source not allowed as child of element audio in
this context. (Suppressing further errors from this subtree.)




<audio controls="controls">
        <source src="audio-clip.mp3
3> " type="audio/mp3" />
        <source src="audio-clip.ogg
g> " type="audio/ogg" />
        <embed src="audio-clip.mp3
3> " autoplay="false" type="audio/mp3" />




If I remove one source tag it will pass the HTML5 validation, but why is

I need both source tags - Firefox, Opera and Chrome - ogg format. Internet
Explorer and Safari - mp3 format.




How do I fix the code and pass the HTML5 validation?


Thank you.

Kristjan Kure

Received on Saturday, 22 October 2011 20:39:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:49 GMT