Index: Source/core/html/HTMLCollection.cpp |
diff --git a/Source/core/html/HTMLCollection.cpp b/Source/core/html/HTMLCollection.cpp |
index 61c63c894218c6f3443aa8d4c4fa0e37d352e18a..83a79e47374c7e1366ccccaf69d4636b31a4095a 100644 |
--- a/Source/core/html/HTMLCollection.cpp |
+++ b/Source/core/html/HTMLCollection.cpp |
@@ -28,9 +28,11 @@ |
#include "core/dom/ClassCollection.h" |
#include "core/dom/ElementTraversal.h" |
#include "core/dom/NodeRareData.h" |
+#include "core/html/DocumentNameCollection.h" |
#include "core/html/HTMLElement.h" |
#include "core/html/HTMLObjectElement.h" |
#include "core/html/HTMLOptionElement.h" |
+#include "core/html/WindowNameCollection.h" |
#include "wtf/HashSet.h" |
namespace WebCore { |
@@ -206,6 +208,10 @@ template <> inline bool isMatchingElement(const HTMLCollection& htmlCollection, |
return toTagCollection(htmlCollection).elementMatches(element); |
case HTMLTagCollectionType: |
return toHTMLTagCollection(htmlCollection).elementMatches(element); |
+ case DocumentNamedItems: |
+ return toDocumentNameCollection(htmlCollection).elementMatches(element); |
+ case WindowNamedItems: |
+ return toWindowNameCollection(htmlCollection).elementMatches(element); |
default: |
break; |
} |