[Bug 9732] Give more varied examples on the codecs parameter

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9732


Philip Jägenstedt <philipj@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philipj@opera.com




--- Comment #1 from Philip Jägenstedt <philipj@opera.com>  2010-05-14 13:38:10 ---
We currently have examples which are all on the form <source src='video.ogv'
type='video/ogg; codecs="theora, vorbis"'>

I've seen (but can't find a link now) people who like double-quotes rewrite
this as type="video/ogg; codecs=&quot;theora, vorbis&quot;". What's worse, this
gets copied to external JavaScript where HTML entities aren't expanded.

While HTML5 does not define how to parse the codecs parameter (no spec does
AFAIK) I would like the spec to have at least some examples that don't use any
quotes or spaces, e.g. type='video/ogg; codecs=theora,vorbis'. This is easier
to read in my opinion. It should also warn about the fragility of both
approaches:

* using quotes breaks when copying to script
* not using quotes breaks when adding a space

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 14 May 2010 13:38:13 UTC