I encountered the same problem last week. It's even stranger with a
node named 'image', somehow that will get converted to img.
I worked around it like this:
[code]var iStart = data.indexOf(?xml);
var sData = data.substr(iStart).replace(/(image\)/g,oSettings.rplImage
You're using an HTML parser, not an XML parser, so it isn't too surprising
that it treats some tagnames specially. It can't hurt to try an XML parser
instead:
function parseXML( xml ) {
if( window.ActiveXObject window.GetObject ) {
var dom = new ActiveXObject(
Thanks for the tip Michael. What I ended up doing was switching from
$.get to $.ajax, and specifying my dataType as XML, and it works
perfect now:
http://docs.jquery.com/Ajax/jQuery.ajax#options
3 matches
Mail list logo