Index: LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.html |
diff --git a/LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.html b/LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e4f05ab107a9322d18abfdd536a80222820e1425 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../../resources/js-test.js"></script> |
+</head> |
+<body> |
+<script type="text/javascript"> |
+description("This test checks to see if getElementsByClassName finds non styled elements."); |
+ |
+var d = document.createElement("div"); |
+d.setAttribute("class", "target"); |
+document.documentElement.appendChild(d); |
+ |
+var e = document.createElementNS("http://foo.com", "div"); |
+e.setAttribute("class", "target"); |
+document.documentElement.appendChild(e); |
+ |
+shouldBe("document.getElementsByClassName('target').length", "2"); |
+</script> |
+</body> |
+</html> |