Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IE innerHTML strips quote characters.
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
01073392
Message ID:
01075657
Views:
49
Hi,

>This one will not:
<?xml version="1.0"?><A id="BTAG" onclick=myfunction()>Rewrite Function</A>
>
Hardly surprising<g>. Actually .outerHTML makes it worse than that - it strips the quotes from all the attributes. All I can suggest is ugly but does the job:
var XMLHTML= document.anchors("ATAG").outerHTML ;
for (oA in document.getElementById("ATAG").attributes){
   if (oA.specified){
   XMLHTML = XMLHTML.replace(oA.value,"'"+oA.value+"'");
   };
};
//Test
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.loadXML('<?xml version="1.0" ?>'+XMLHTML);
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform