Valid XHTML for the GetUp! Petition Widget
Sun 8 Feb 2009I take my ability to write Valid XHTML seriously. Consequently it has annoyed me that in some recent posts where I have included the online petition widget from GetUp!, my code was no longer valid XHTML. This afternoon, I took steps to fix it.
Here is the code supplied by GetUp! which uses the now-deprecated <embed> tag.
<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="300" height="250">
<param name="movie"
value="http://www.getup.org.au/flash/widget.swf"></param>
<param name="quality" value="high">
<embed src="http://www.getup.org.au/flash/widget.swf"
quality="high"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash"
width="300" height="250">
</embed></param></object></div>
By adding the correct parameters to the <object> tag, my code is now valid.
<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
type="application/x-shockwave-flash"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="300" height="250">
<param name="movie"
value="http://www.getup.org.au/flash/widget.swf"></param>
<param name="quality" value="high"></param>
<param name="pluginspage"
value="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
</param></object></div>
I’m no longer annoyed.
———————
See also: Valid XHTML to Embed a YouTube Video
