Index: LayoutTests/dom/svg/svg-className-lookup-crash.htm |
diff --git a/LayoutTests/dom/svg/svg-className-lookup-crash.htm b/LayoutTests/dom/svg/svg-className-lookup-crash.htm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..db988b9fe3a1432f0a5ebbb85338255b62f4d20d |
--- /dev/null |
+++ b/LayoutTests/dom/svg/svg-className-lookup-crash.htm |
@@ -0,0 +1,24 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<svg><view id="indocument" class="indocument"></view></svg> |
+<script> |
+document.write("Accessing a SVGStyledElement's class attribute should not crash.<br>\n"); |
+ |
+var svgElement1 = document.createElementNS("http://www.w3.org/2000/svg", "view"); |
+svgElement1.setAttribute("class", "created"); |
+var result1_1 = svgElement1.getAttribute("class"); |
+var result1_2 = svgElement1.className; |
+document.write("createElementNS() className is 'created', the actual class was '" + result1_1 + "' and '" + result1_2 + "'.<br>\n"); |
+ |
+var svgElement2 = document.getElementById("indocument"); |
+var result2_1 = svgElement2.getAttribute("class"); |
+var result2_2 = svgElement2.className; |
+document.write("In document className is 'indocument', the actual class was '" + result2_1 + "' and '" + result2_2 + "'.<br>\n"); |
+ |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+} |
+</script> |
+</body> |
+</html> |