Closed GoogleCodeExporter closed 9 years ago
if you specify a class in the attributes object, it will be passed to the
<object> when it's created. however, since 'class' is a reserved word, you'd
have to use 'styleclass' in the attributes object, like this:
var attributes = { styleclass: "myClass" };
which gets passed down as <object class="myClass">
if you need to add the 'rel' attribute, you can do it, too:
var attributes = { styleclass: "myClass", rel: "myRel" };
which gets passed down as <object class="myClass" rel="myRel" >
The e.setAttribute("class", attObj[k]); code you referenced is only used if you
specify a styleclass in the swfobject attributes object. It should have no
effect on your 3rd party libraries like jQuery.
This is not a bug in SWFObject
Original comment by platelu...@gmail.com
on 16 May 2011 at 5:47
Original issue reported on code.google.com by
simon.ge...@free.Fr
on 23 Apr 2011 at 9:51