Document Fragment Isolate them Self , Style or css is missing

I've been doing this xml and xslt transormation on client side a.k.a javascript

And to my suprise altough i use the xslt.js or built in function for transormation

When you do an apped child , the Css that is tag with the result is not showing

So what ever css you put there inline, or class name ...

it's not showing

Damn....... This happen on FF,Safari and Opera. with xslt.js you get it right on ff , IE only.

Apperantly the result got back is DocumentFragment.

Document Fragment Is Isolating it self, so it's like a lighweight live instantiate Element. But will not Followed what ever css you put in.

 

Anyway i found out solution , is to chaneg the DocumentFragment type Xml  To String again

var xmlString = (new XMLSerializer()).serializeToString(resultDoc);

and as usual set the div.innerHTML = xmlString.
Wuallahhh

24/7/2009

I give up using xslt on client, It always different on IE, FF , Safari throw error, opera buggy

Yaiks. i use the server side

Share this post: | | | |
Published Thursday, July 23, 2009 8:14 PM by cipto
Filed under:

Comments

No Comments