Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/namespaced-elements-and-selectors.html

Issue 1932673002: querySelector* fast-path missing namespace check for no namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nullAtom not emptyAtom Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/namespaced-elements-and-selectors-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/namespaced-elements-and-selectors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698