Index: third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/namespaced-elements-and-selectors.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/namespaced-elements-and-selectors.html b/third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/namespaced-elements-and-selectors.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2f5a54ed2866b9f88c8ae7d67e0e754b479d0083 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/namespaced-elements-and-selectors.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<div id="sandbox"> |
+ <span></span> |
+</div> |
+<script> |
+description("querySelectorAll and namespaces"); |
+ |
+sandbox.appendChild(document.createElementNS("http://dummynamespace", "span")); |
+sandbox.appendChild(document.createElementNS("", "span")); |
+ |
+shouldBe("sandbox.querySelectorAll('span').length", "3"); |
+shouldBe("sandbox.querySelectorAll('*|span').length", "3"); |
+shouldBe("sandbox.querySelectorAll('|span').length", "1"); |
+</script> |