| Index: Source/core/dom/LiveNodeList.cpp
|
| diff --git a/Source/core/dom/LiveNodeList.cpp b/Source/core/dom/LiveNodeList.cpp
|
| index 0abe761789a49da4f51ef337d78d56bcb53d4155..8f3bd6e8fe3a0ac00f0541add1d0b282416eaddc 100644
|
| --- a/Source/core/dom/LiveNodeList.cpp
|
| +++ b/Source/core/dom/LiveNodeList.cpp
|
| @@ -61,7 +61,7 @@ Node* LiveNodeList::namedItem(const AtomicString& elementId) const
|
|
|
| if (rootNode.inDocument()) {
|
| Element* element = rootNode.treeScope().getElementById(elementId);
|
| - if (element && nodeMatches(element) && element->isDescendantOf(&rootNode))
|
| + if (element && nodeMatches(*element) && element->isDescendantOf(&rootNode))
|
| return element;
|
| if (!element)
|
| return 0;
|
|
|