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

Unified Diff: Source/core/html/HTMLCollection.idl

Issue 137433008: Have HTMLCollection::item() return an Element as per specification (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update WebNodeCollection API 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/HTMLCollection.idl
diff --git a/Source/core/html/HTMLCollection.idl b/Source/core/html/HTMLCollection.idl
index 2632e64de090e4a4955f3b474a716905d6abd8b6..fb9b844d1332cf0118494d229bcd3fca86106a11 100644
--- a/Source/core/html/HTMLCollection.idl
+++ b/Source/core/html/HTMLCollection.idl
@@ -24,7 +24,7 @@
SetWrapperReferenceFrom=ownerNode,
] interface HTMLCollection {
readonly attribute unsigned long length;
- getter Node item([Default=Undefined] optional unsigned long index);
+ getter Element item([Default=Undefined] optional unsigned long index);
Element namedItem([Default=Undefined] optional DOMString name);
[NotEnumerable, ImplementedAs=namedItem] getter Element ([Default=Undefined] optional DOMString name);
};

Powered by Google App Engine
This is Rietveld 408576698