This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13886 - Audio Source broken?
Summary: Audio Source broken?
Status: RESOLVED FIXED
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords: media
Depends on:
Blocks:
 
Reported: 2011-08-24 10:51 UTC by j.chetwynd
Modified: 2015-08-23 07:07 UTC (History)
1 user (show)

See Also:


Attachments

Description j.chetwynd 2011-08-24 10:51:52 UTC
this snippet

 <audio > 
            <source src="audio/atari.mp3" />
            <source src="audio/atari.ogg" />
 </audio>

produces an error on the validator:

Line xxx, Column xx: Element source not allowed as child of element audio in this context. (Suppressing further errors from this subtree.)
            <source src="audio/go.ogg" />
Contexts in which element source may be used:
As a child of a media element, before any flow content or track elements.
Content model for element audio:
If the element has a src attribute: zero or more track elements, then transparent, but with no media element descendants.
If the element does not have a src attribute: one or more source elements, then zero or more track elements, then transparent, but with no media element descendants.

yet seems similar to:

http://www.whatwg.org/specs/web   

<video controls autoplay>
 <source src='video.mp4' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
 <source src='video.ogv' type='video/ogg; codecs="theora, vorbis"'
         onerror="fallback(parentNode)">
 ...
</video>
Comment 1 admin947 2011-09-18 22:24:43 UTC
This source validates correctly in http://validator.nu
Comment 2 Michael[tm] Smith 2011-10-25 08:33:58 UTC
This is due to a flub I made a while back and have since fixed in the sources. I've just not pushed the fix out to the W3C validator so far. But I will do that within the next few days, and then change the status on this bug after that.
Comment 3 Michael[tm] Smith 2011-10-26 06:49:22 UTC
I just pushed an update to the validator, so this should ow validate as expected if you try it again.