W3C home > Mailing lists > Public > public-html@w3.org > March 2010

Re: <video> attributes and children

From: Maciej Stachowiak <mjs@apple.com>
Date: Sat, 06 Mar 2010 22:10:07 -0800
Cc: Joe D Williams <joedwil@earthlink.net>, 'HTML WG' <public-html@w3.org>
Message-id: <63611F23-40B4-4791-B89B-6DDD6F6B80AF@apple.com>
To: David Singer <singer@apple.com>

On Mar 6, 2010, at 7:56 PM, David Singer wrote:

> On Mar 6, 2010, at 15:38 , Maciej Stachowiak wrote:
>> On Mar 5, 2010, at 10:00 PM, Joe D Williams wrote:
>>> 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.
>> @type and @media are used to select from among multiple sources.  
>> It's not allowed to combine @src and <source>. So <video src> has  
>> only one possible source, and therefore there's no need for  
>> information that would be used to choose a source in that case.
> (devil's advocate here)...they could still be used to warn me  
> whether I can/should play the media (e.g. the media attribute might  
> warn me it's unsuitable for people susceptible to flashing...)

If that is the author's intent, he or she can use  <video> element  
with a single <source> child. In principle we could add <video src> as  
a second way to do it. Is this use case common enough for that to be a  
worthwhile exercie?

Received on Sunday, 7 March 2010 06:10:43 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:59 UTC