[development] xhtml and embed tag: best way to compliance?
Fabio Varesano
fabio.varesano at gmail.com
Mon Jun 12 18:18:48 UTC 2006
Great Karl!!!
I was just having problem with flowplayer
(a flash flv player which get played movie
path from a flashvar) I think that this new
implementation will help!
Great work!
New video module with XHTML valid code to be
released soon.
Fabio
Karl Rudd wrote:
> I just spent the last few hours fixing my "fix" for the "Click to
> activate..." thing with IE.
>
> It turns out that the "flashvars" parameter, and many others, don't
> survive the "rewrite" in the current fix.
>
> Here's the new code:
>
> var objects = document.getElementsByTagName( 'object' );
> for ( var i = 0; i < objects.length; i++ ) {
> var obj = objects[ i ];
> var clone = obj .cloneNode( true );
> var parent = obj .parentNode;
> var sibling = obj .nextSibling;
> parent.removeChild( obj );
> parent.insertBefore( clone, sibling );
> clone.outerHTML = clone.outerHTML;
> }
>
> Not as "clean" as before but then again it's a fix for IE, so it's
> almost to be expected.
>
> Karl
>
More information about the development
mailing list