blob: d100cbe06d58ff9e61296bcd49eec588cbffa7c8 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test-pre.js"></script>
<script>
description('Tests cloneNode for SVGDocument.');
function className(object) {
return Object.prototype.toString.call(object).slice(8, -1);
}
var svgDoc = document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg', null);
shouldBe('svgDoc.cloneNode(false).__proto__', 'SVGDocument.prototype');
shouldBeEqualToString('className(svgDoc.cloneNode(false))', 'SVGDocument');
shouldBeEqualToString('svgDoc.cloneNode(true).compatMode', 'CSS1Compat');
</script>
<script src="../../resources/js-test-post.js"></script>