xhtml and embedded video

So I was trying to make my site xhtml 1.0 strict compliant and my embedded youtube videos were breaking it. I do try to be standards compliant and only with my new theme have i gotten into xhtml for slantview.com.
Well, as it turns out, there is a great article over at http://www.wimpyplayer.com/support/faqs/docs/general_xhtml_compliance.html about this very topic...

For the lazy, here is the code:

<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com
/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="400" height="300" id="movie" align="">
<param name="movie" value="movie.swf">
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#000000" />
<embed src="movie.swf?wimpy=options"
loop="false"
menu="false"
quality="high"
scale="noscale"
salign="lt"
width="320"
height="260"
name="wimpy"
align="middle"
bgcolor="#000000"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Becomes:

<object type="application/x-shockwave-flash" data="movie.swf" width="400" height="300">
<param name="movie" value="movie.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#000000" />
</object>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options