Why does this example http://chrisjj.drivehq.com/test.htm
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
(from http://www.w3schools.com/html/html5_audio.asp) fail on Firefox 16 and IE9?
It succeeds on Chrome V24.
UPDATE:
<!doctype html>
<audio controls>
<source src="horse.ogg" type="application/x-msdownload">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
works on IE9, but (despite http://web-sniffer.net/ shows “Content-Type: application/x-msdownload”) not on FF.
In Firefox, because the
content-typeheader of the server’s HTTP response forhorse.oggisapplication/x-msdownloadinstead ofaudio/ogg.In IE9, because the page is not a well formed HTML document with a
DOCTYPE,<html>,<head>and<body>elements. Not being a proper HTML document will trigger quirks mode.