#include "WebDOMEventListener.h"
#include "WebDocument.h"
#include "WebElement.h"
+#include "WebElementCollection.h"
#include "WebFrameImpl.h"
#include "WebNodeList.h"
#include "WebPluginContainer.h"
#include "bindings/v8/ExceptionState.h"
#include "core/dom/Document.h"
#include "core/dom/Element.h"
-#include "core/dom/EmptyNodeList.h"
-#include "core/events/Event.h"
#include "core/dom/Node.h"
#include "core/dom/NodeList.h"
#include "core/editing/markup.h"
+#include "core/events/Event.h"
+#include "core/html/HTMLCollection.h"
#include "core/rendering/RenderObject.h"
#include "core/rendering/RenderWidget.h"
#include "platform/Widget.h"
m_private->dispatchSimulatedClick(0);
}
-WebNodeList WebNode::getElementsByTagName(const WebString& tag) const
+WebElementCollection WebNode::getElementsByTagName(const WebString& tag) const
{
if (m_private->isContainerNode())
- return WebNodeList(toContainerNode(m_private.get())->getElementsByTagName(tag));
- return WebNodeList(EmptyNodeList::create(m_private.get()));
+ return WebElementCollection(toContainerNode(m_private.get())->getElementsByTagName(tag));
+ return WebElementCollection();
}
WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) const