inicio mail me! sindicaci;ón

Valid flash in XHTML (killing <embed>)

I wanted to validate my xhtml code for the new site design, and ran into the following fun errors from w3c:
Line 25, Column 15: there is no attribute "src".
Line 26, Column 18: there is no attribute "wmode".
Line 27, Column 17: there is no attribute "type".
Line 28, Column 18: there is no attribute "width".
Line 28, Column 31: there is no attribute "height".
Line 28, Column 38: element "embed" undefined.

Which was caused by this tag, my Digsby chat widget:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="190" height="250" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://w.digsby.com/dw.swf?c=lxogglyphmsfi7xc" /><embed type="application/x-shockwave-flash" width="190" height="250" src="http://w.digsby.com/dw.swf?c=lxogglyphmsfi7xc"></embed></object>

A little research and an article from A List Apart later, I’ve found valid input for including flash in Transitional XHTML:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="190" height="250" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://w.digsby.com/dw.swf?c=lxogglyphmsfi7xc" /><embed type="application/x-shockwave-flash" width="190" height="250" src="http://w.digsby.com/dw.swf?c=lxogglyphmsfi7xc"></embed></object>

Leave a Comment