Skip to content

Instantly share code, notes, and snippets.

@paulRbr
Created September 2, 2013 07:16
Show Gist options
  • Save paulRbr/6409999 to your computer and use it in GitHub Desktop.
Save paulRbr/6409999 to your computer and use it in GitHub Desktop.
The cloneNode method which is not called but throws a TypeError in IE8
describe("The Mystic Thrown Error", function() {
it("should be working", function() {
var oXML = new ActiveXObject("MSXML2.DOMDocument.4.0");
oXML.async = false;
oXML.loadXML("<hello></hello>");
if (oXML.cloneNode) {} // This Fails
expect(true).toBe(true);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment