Index: Source/core/html/HTMLFormControlsCollection.cpp |
diff --git a/Source/core/html/HTMLFormControlsCollection.cpp b/Source/core/html/HTMLFormControlsCollection.cpp |
index 35f10c5b04b3bb891cb1058020b49b51c4b5d2c0..db17ef475b622573d7d215118ed399199bd62b25 100644 |
--- a/Source/core/html/HTMLFormControlsCollection.cpp |
+++ b/Source/core/html/HTMLFormControlsCollection.cpp |
@@ -134,7 +134,7 @@ static HTMLElement* firstNamedItem(const Vector<FormAssociatedElement*>& element |
return 0; |
} |
-Node* HTMLFormControlsCollection::namedItem(const AtomicString& name) const |
+Element* HTMLFormControlsCollection::namedItem(const AtomicString& name) const |
{ |
// http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/nameditem.asp |
// This method first searches for an object with a matching id |
@@ -190,9 +190,9 @@ void HTMLFormControlsCollection::updateNameCache() const |
setHasNameCache(); |
} |
-void HTMLFormControlsCollection::namedGetter(const AtomicString& name, bool& returnValue0Enabled, RefPtr<RadioNodeList>& returnValue0, bool& returnValue1Enabled, RefPtr<Node>& returnValue1) |
+void HTMLFormControlsCollection::namedGetter(const AtomicString& name, bool& returnValue0Enabled, RefPtr<RadioNodeList>& returnValue0, bool& returnValue1Enabled, RefPtr<Element>& returnValue1) |
{ |
- Vector<RefPtr<Node> > namedItems; |
+ Vector<RefPtr<Element> > namedItems; |
this->namedItems(name, namedItems); |
if (!namedItems.size()) |