2 <link rel=
"help" href=
"http://dom.spec.whatwg.org/#dom-node-clonenode">
3 <script src=
"../../resources/js-test.js"></script>
6 description('Tests cloneNode for SVGDocument.');
8 function className(object
) {
9 return Object
.prototype.toString
.call(object
).slice(8, -1);
12 var svgDoc
= document
.implementation
.createDocument('http://www.w3.org/2000/svg', 'svg', null);
14 shouldBe('svgDoc.cloneNode(false).__proto__', 'XMLDocument.prototype');
15 shouldBeEqualToString('className(svgDoc.cloneNode(false))', 'XMLDocument');
16 shouldBeEqualToString('svgDoc.cloneNode(true).compatMode', 'CSS1Compat');