Index: Source/core/accessibility/AXListBox.cpp |
diff --git a/Source/core/accessibility/AXListBox.cpp b/Source/core/accessibility/AXListBox.cpp |
index 444c3047fe0b10f4830c135728d70d79f13a0796..d306616316c55295841118ba1065f0a3a96692dc 100644 |
--- a/Source/core/accessibility/AXListBox.cpp |
+++ b/Source/core/accessibility/AXListBox.cpp |
@@ -126,7 +126,7 @@ void AXListBox::selectedChildren(AccessibilityChildrenVector& result) |
AXObject* AXListBox::listBoxOptionAXObject(HTMLElement* element) const |
{ |
// skip hr elements |
- if (!element || element->hasTagName(hrTag)) |
+ if (!element || isHTMLHRElement(*element)) |
return 0; |
AXObject* listBoxObject = m_renderer->document().axObjectCache()->getOrCreate(ListBoxOptionRole); |