Valid XHTML for the GetUp! Petition Widget

Sun 8 Feb 2009

I 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

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Comment moderation is in use. Please do not submit your comment twice -- it will appear shortly.
"SEO"-type comments will be reported to Akismet as Spam.