Index: LayoutTests/fast/innerHTML/innerHTML-svg-write.html |
diff --git a/LayoutTests/fast/innerHTML/innerHTML-svg-write.html b/LayoutTests/fast/innerHTML/innerHTML-svg-write.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..47d303ddf94c005e1c956128a601a668fdeb5fb2 |
--- /dev/null |
+++ b/LayoutTests/fast/innerHTML/innerHTML-svg-write.html |
@@ -0,0 +1,22 @@ |
+<html> |
+<head> |
+<script src="../js/resources/js-test-pre.js"></script> |
+</head> |
+<body> |
+<div style="visibility:hidden"> |
+ <svg></svg> |
+</div> |
+<script> |
+ description("Test that setting the innerHTML property works on SVG elements"); |
+ var svg = document.getElementsByTagName('svg')[0]; |
+ svg.innerHTML = "<rect/>"; |
+ shouldBe("svg.innerHTML", '"<rect></rect>"'); |
+ shouldBe("svg.firstChild.namespaceURI", '"http://www.w3.org/2000/svg"'); |
+ svg.outerHTML = '"<svg><circle/></svg>"'; |
+ var svg = document.getElementsByTagName('svg')[0]; |
+ shouldBe("svg.innerHTML", '"<circle></circle>"'); |
+ shouldBe("svg.firstChild.namespaceURI", '"http://www.w3.org/2000/svg"'); |
+</script> |
+<script src="../js/resources/js-test-post.js"></script> |
+</body> |
+</html> |