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

<audio> providing multiple alternate media resources using <source src= broken in validator

From: jonathan chetwynd <j.chetwynd@btconnect.com>
Date: Sun, 18 Sep 2011 18:38:19 +0100
Message-Id: <12FDA0DA-2D93-4973-8EDB-4C6CEBD1A9E1@btconnect.com>
To: www-validator@w3.org
see attached file,

according to the specs** and current usage the code in the attached reduced testcase is the appropriate way to enable a variety of browsers using different sound formats.

however this trestcase raises errors with the current validator.

regards 

  	
Jonathan Chetwynd

j.chetwynd@btconnect.com
http://www.peepo.com/

+44 (0) 20 7978 1764



<!DOCTYPE HTML>
<html>
<body>

<audio controls="controls">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>

</body>
</html>

** "The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own."
http://www.whatwg.org/specs/web-apps/current-work/#the-source-element

please copy me into replies


Received on Sunday, 18 September 2011 17:39:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:23 UTC