#ifndef DocumentNameCollection_h
#define DocumentNameCollection_h
+#include "core/html/HTMLElement.h"
#include "core/html/HTMLNameCollection.h"
namespace blink {
return adoptRefWillBeNoop(new DocumentNameCollection(document, name));
}
- bool elementMatches(const Element&) const;
+ HTMLElement* item(unsigned offset) const { return toHTMLElement(HTMLNameCollection::item(offset)); }
+
+ bool elementMatches(const HTMLElement&) const;
private:
DocumentNameCollection(ContainerNode& document, const AtomicString& name);