[jQuery] Re: Remove() xml nodes doesnt work in ie
Yeah seems its a bug, http://dev.jquery.com/ticket/3521 As a work around I just used removeChild. For example: var elementToRemove = $(this.xmlDoc).find("gd > cd > uid"); elementToRemove .parentNode.removeChild(elementToRemove );
[jQuery] Re: Remove() xml nodes doesnt work in ie
Here is some example code, and a test case for which it fails in ie. (Latest version of jquery, 1.26) //Xml Parser object var xmlParser = { xmlDoc : null, //Loads the xml string into a xml doc loadFromDb : function(xmlString) { if(window.ActiveXObject) { //ie this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); this.xmlDoc.async="false"; this.xmlDoc.loadXML(xmlString); } else { //ff/opera var parser = new DOMParser(); this.xmlDoc = parser.parseFromString(xmlString,"text/ xml"); } }, toString : function() { if (window.ActiveXObject) return this.xmlDoc.xml; else return (new XMLSerializer()).serializeToString(this.xmlDoc); }, deleteTest : function() { $(this.xmlDoc).find("gd > cd > uid").remove(); } }; //Our test xml string var xml = "gd>"; //Load our xml up xmlParser.loadFromDb(xml); //And try and delete the uid node xmlParser.deleteTest(); //Works fine in ff, fails in ie 7, "Object doesn't support this property or method. //Line 666 of jquery: id = elem[ expando ] = ++uuid; alert(xmlParser.toString()); 0 0 0 0
[jQuery] Remove() xml nodes doesnt work in ie
Using remove() on a xml document wont work in ie 7. (works fine in ff) Example: $(this.xmlDoc).find("gd > cd").remove(); Results in js error: "Object doesnt support this property or method" which points to line 666 in jquery, id = elem[ expando ] = ++uuid; Anyone know a work around/way to fix for this?
[jQuery] Remove() xml nodes doesnt work in ie
Using remove() on a xml document wont work in ie 7. (works fine in ff) Example: $(this.xmlDoc).find("gd > cd").remove(); Results in js error: "Object doesnt support this property or method" which points to line 666 in jquery, id = elem[ expando ] = ++uuid; Anyone know a work around/way to fix for this?
[jQuery] Remove() xml nodes doesnt work in ie
Using remove() on a xml document wont work in ie 7. (works fine in ff) Example: $(this.xmlDoc).find("gd > cd").remove(); Results in js error: "Object doesnt support this property or method" which points to line 666 in jquery, id = elem[ expando ] = ++uuid; Anyone know a work around/way to fix for this?
[jQuery] Remove() xml nodes doesnt work in ie
Using remove() on a xml document wont work in ie 7. (works fine in ff) Example: $(this.xmlDoc).find("gd > cd").remove(); Results in js error: "Object doesnt support this property or method" which points to line 666 in jquery, id = elem[ expando ] = ++uuid; Anyone know a work around/way to fix for this?