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

Unified Diff: Source/core/html/HTMLAllCollection.cpp

Issue 143453010: Have getElementsByClassName() / getElementsByTagName*() return an HTMLCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Null HTMLCollection handling 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: Source/core/html/HTMLAllCollection.cpp
diff --git a/Source/core/html/HTMLAllCollection.cpp b/Source/core/html/HTMLAllCollection.cpp
index 9af8d2baa13ae08d3af21fe6a94d51334d2ead0e..109bca0291bbc0a4dcef4ba6749bc194541d7e9e 100644
--- a/Source/core/html/HTMLAllCollection.cpp
+++ b/Source/core/html/HTMLAllCollection.cpp
@@ -84,7 +84,7 @@ void HTMLAllCollection::anonymousNamedGetter(const AtomicString& name, bool& ret
returnValue0 = NamedNodesCollection::create(namedItems);
}
-PassRefPtr<NodeList> HTMLAllCollection::tags(const AtomicString& name)
+PassRefPtr<HTMLCollection> HTMLAllCollection::tags(const AtomicString& name)
{
return ownerNode()->getElementsByTagName(name);
}

Powered by Google App Engine
This is Rietveld 408576698