Skip to content Skip to sidebar Skip to footer

Javascript Clonenode() Method Is Not Working With Safari

My code is perfectly working with IE but its not working with safari.Clonenode() method is not working in safari . I have a code like this function ApplyNowWizard_addVehicleTypeLis

Solution 1:

As documentElement is a Document field, I assume vehicleDOM must be a Document. Note the DOM specification comment about cloneNode:

And, cloning Document, DocumentType, Entity, and Notation nodes is implementation dependent.

Since what you really want is a clone of the document element anyway, it sounds like you may be better off cloning that rather than the Document:

oParent.documentElement.appendChild(vehicleDOM.documentElement.cloneNode(true));

Post a Comment for "Javascript Clonenode() Method Is Not Working With Safari"