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

Unified Diff: LayoutTests/fast/dom/script-tests/domListEnumeration.js

Issue 143453010: Have getElementsByClassName() / getElementsByTagName*() return an HTMLCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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
Index: LayoutTests/fast/dom/script-tests/domListEnumeration.js
diff --git a/LayoutTests/fast/dom/script-tests/domListEnumeration.js b/LayoutTests/fast/dom/script-tests/domListEnumeration.js
index b4adb2ec8b399c8b4fdc83748803a859480bf592..f229a53d23a665ef38d02d3273c3353d675a2b15 100644
--- a/LayoutTests/fast/dom/script-tests/domListEnumeration.js
+++ b/LayoutTests/fast/dom/script-tests/domListEnumeration.js
@@ -94,7 +94,7 @@ setup();
var resultArray = new Array();
// NodeList
-var nodeList = document.getElementsByTagName('ol');
+var nodeList = document.querySelectorAll('ol');
resultArray = iterateList(nodeList);
shouldBe("resultArray.length", "5");

Powered by Google App Engine
This is Rietveld 408576698