summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/DynamicNodeList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/DynamicNodeList.cpp')
-rw-r--r--WebCore/dom/DynamicNodeList.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/WebCore/dom/DynamicNodeList.cpp b/WebCore/dom/DynamicNodeList.cpp
index 892a5e7..3f0744b 100644
--- a/WebCore/dom/DynamicNodeList.cpp
+++ b/WebCore/dom/DynamicNodeList.cpp
@@ -129,7 +129,9 @@ Node* DynamicNodeList::itemWithName(const AtomicString& elementId) const
return node;
}
}
- return 0;
+ if (!node)
+ return 0;
+ // In the case of multiple nodes with the same name, just fall through.
}
unsigned length = this->length();