<video> attributes and children

questions for <video>

1. Why does <video> not include @type and @media?
If <source> uses/needs them, then why not <video> if only @src?
If no <source> then @type and @media would not be present.

2. Why would <source> (or <param>) include Global attributes?
None are rendered and only the container really needs these.

3. Why does <video> @src empty or missing mean that <source> elements
may be included?

a src attribute, or zero or more source elements, followed by some or
none flow content or phrasing content

http://dev.w3.org/html5/spec/video.html#attr-media-src

"There are two ways to specify a media resource, the src attribute, or
source elements. The attribute overrides the elements."

But if the attribute is present, <source> not conforming?
If the attribute is not present or empty, one or more <source> are
conforming?.

Sorry if I apparently hadn't looked at <video> in this detail before.
I just thought it seemed natural that this was a two level fallback
plan where is the <video> @src didn't play, then try <source> @src
content in sequence and if still no go then show the flow or phrasing
content.

Why doesn't the standard at least imply that the browser does anything
'automatic' in the fallback scheme?
Are the <source> elements in there just so I can include some script
to do fallback?

Thanks and Best Regards,
Joe

Received on Saturday, 6 March 2010 06:01:07 UTC