W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2007

[whatwg] <source>

From: Nicholas Shanks <contact@nickshanks.com>
Date: Fri, 23 Mar 2007 21:26:32 +0000
Message-ID: <3981CB1C-AE73-4E62-9A0B-345FBF48B4E3@nickshanks.com>
On 23 Mar 2007, at 20:47, Maciej Stachowiak wrote:

> I agree the repetition of source/src is a little weird.
> and name the new element something like <alt>

I don't like abbreviations such as alt and src.
The use case is uncommon enough that <alternate> wouldn't be too much  
of a burden to type and ought to prove more readable.

> Perhaps reusing <li> like that is too cute

How about:

	<li><audio src="foo" type="...">Audio fallback</audio></li>
	<li><video src="bar" type="...">Video fallback</video></li>

User agents that don't support playlist, audio and video just get an  
ordered list of fallback text.
UAs that do support them also benefit in being able to negotiate each  
variant individually instead of getting whatever collection of media  
files the "playlist movie" decides upon.
And perhaps playlists with a <ul> child can play the media in any  
order, not necessarily source order, presumably whatever item becomes  
available first.

But I have been arguing against element proliferation in another  
thread and here I am suggesting new ones :-)

- Nicholas.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2157 bytes
Desc: not available
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20070323/00a2dba6/attachment.bin>
Received on Friday, 23 March 2007 14:26:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC