Index: Source/core/html/HTMLOptionsCollection.cpp |
diff --git a/Source/core/html/HTMLOptionsCollection.cpp b/Source/core/html/HTMLOptionsCollection.cpp |
index 7011248762e2e1433646c0fc4a2a8fdf93fe05b5..d1abb1d3c23f1a98665710f3e1f94e168b1186e2 100644 |
--- a/Source/core/html/HTMLOptionsCollection.cpp |
+++ b/Source/core/html/HTMLOptionsCollection.cpp |
@@ -34,7 +34,7 @@ namespace WebCore { |
HTMLOptionsCollection::HTMLOptionsCollection(ContainerNode& select) |
: HTMLCollection(select, SelectOptions, DoesNotOverrideItemAfter) |
{ |
- ASSERT(select.hasTagName(HTMLNames::selectTag)); |
+ ASSERT(isHTMLSelectElement(select)); |
ScriptWrappable::init(this); |
} |