Hi, I'm trying to write a backslash as a text node into the style tag
of a web page, but IE is not letting me(perhaps because of security or
something?). I need to write a backslash because it is part of the
style rule needed to draw VML images. This is my current code at the
moment:
var theTextofStyle = document.createTextNode('v\:* { behavior:
url(#default#VML); }');
document.getElementsByTagName('style')[0].appendChild(theTextofStyle);
I've tried all the usual ways to escape the backslash, but IE still
won't let me write it into the style element.
Anyone have any ideas on getting around this?
Cheers.