Index: Source/core/accessibility/AXMenuListPopup.cpp |
diff --git a/Source/core/accessibility/AXMenuListPopup.cpp b/Source/core/accessibility/AXMenuListPopup.cpp |
index 145792aa05ffb568888c281b1f3d35a92da1811d..b5641a5d497bb35b50e7137526c939098f7c2a75 100644 |
--- a/Source/core/accessibility/AXMenuListPopup.cpp |
+++ b/Source/core/accessibility/AXMenuListPopup.cpp |
@@ -66,7 +66,8 @@ bool AXMenuListPopup::computeAccessibilityIsIgnored() const |
AXMenuListOption* AXMenuListPopup::menuListOptionAXObject(HTMLElement* element) const |
{ |
- if (!element->hasTagName(optionTag)) |
+ ASSERT(element); |
+ if (!isHTMLOptionElement(*element)) |
return 0; |
AXObject* object = document()->axObjectCache()->getOrCreate(MenuListOptionRole); |