Index: Source/core/accessibility/AXMenuListOption.cpp |
diff --git a/Source/core/accessibility/AXMenuListOption.cpp b/Source/core/accessibility/AXMenuListOption.cpp |
index 7dc61b759b49620474ecb14aba725db9ac56cc7f..0c657b36248128c33268032cc6635f053e0bda2e 100644 |
--- a/Source/core/accessibility/AXMenuListOption.cpp |
+++ b/Source/core/accessibility/AXMenuListOption.cpp |
@@ -38,7 +38,7 @@ AXMenuListOption::AXMenuListOption() |
void AXMenuListOption::setElement(HTMLElement* element) |
{ |
- ASSERT_ARG(element, element->hasTagName(optionTag)); |
+ ASSERT_ARG(element, isHTMLOptionElement(element)); |
m_element = element; |
} |