ehtasham89 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Validation error with HTML5 doctype (non-Dynamic version) #538

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Swap current doctype in download example to html5 (as per html5 
Boilerplate)...

<!doctype html>
<html lang="en">

2. Try validator...
3. 2 errors:

Line 14, Column 99: Element object is missing one or more of the following 
attributes: data, type.

Line 14, Column 99: The classid attribute on the object element is obsolete. 
Use the data and type attributes to invoke plugins. To set a parameter with the 
name classid, use the param element.

What is the expected output? What do you see instead?
swfobject 2.2 (non-dynamic version) appears to work ok, just doesn't validate - 
I couldn't find any help on this anywhere.

What version of the product are you using? On what operating system?
2.2; Validator = http://validator.w3.org/check

Original issue reported on code.google.com by neil.san...@techdept.co.uk on 1 Mar 2011 at 8:45

GoogleCodeExporter commented 9 years ago
Unfortunately, this is beyond SWFObject's control, as Internet Explorer formats 
the <object> a bit differently than other browsers, removing the data attribute 
and requiring the classid attribute.

You may be able to pass validation using the simplified static publishing 
format:

<!--[if IE]>
<object id='mySWF' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' 
width='550' height='400'>
<param name='movie' value='myfile.swf'/>
<![endif]-->

<!--[if !IE]>-->
<object id='mySWF' type='application/x-shockwave-flash' data='myfile.swf' 
width='550' height='400'>
<!--<![endif]-->

<p>This page requires Adobe Flash Player, which you can download free at <a 
href="http://get.adobe.com/flashplayer/">http://get.adobe.com/flashplayer/</a></
p>

</object>

Original comment by platelu...@gmail.com on 16 May 2011 at 4:04