| Index: Source/web/WebNode.cpp
|
| diff --git a/Source/web/WebNode.cpp b/Source/web/WebNode.cpp
|
| index a4008b4e6ba7b01b9224df75c62fc4531d6e68fc..eb249b32815ff9cc5847005780d31d46ff9f4c16 100644
|
| --- a/Source/web/WebNode.cpp
|
| +++ b/Source/web/WebNode.cpp
|
| @@ -44,6 +44,7 @@
|
| #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"
|
| @@ -192,7 +193,9 @@ void WebNode::simulateClick()
|
|
|
| WebNodeList WebNode::getElementsByTagName(const WebString& tag) const
|
| {
|
| - return WebNodeList(m_private->getElementsByTagName(tag));
|
| + if (m_private->isContainerNode())
|
| + return WebNodeList(toContainerNode(m_private.get())->getElementsByTagName(tag));
|
| + return WebNodeList(EmptyNodeList::create(m_private.get()));
|
| }
|
|
|
| WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) const
|
|
|