| Index: Source/core/accessibility/AXListBoxOption.cpp
|
| diff --git a/Source/core/accessibility/AXListBoxOption.cpp b/Source/core/accessibility/AXListBoxOption.cpp
|
| index e8f82e75c5711379aea177184a9d48303a502bca..2aa6c2e9e363d13d468341d58972dc7f0b1c2c4d 100644
|
| --- a/Source/core/accessibility/AXListBoxOption.cpp
|
| +++ b/Source/core/accessibility/AXListBoxOption.cpp
|
| @@ -60,7 +60,7 @@ bool AXListBoxOption::isEnabled() const
|
| if (!m_optionElement)
|
| return false;
|
|
|
| - if (m_optionElement->hasTagName(optgroupTag))
|
| + if (isHTMLOptGroupElement(*m_optionElement))
|
| return false;
|
|
|
| if (equalIgnoringCase(getAttribute(aria_disabledAttr), "true"))
|
| @@ -124,10 +124,7 @@ bool AXListBoxOption::computeAccessibilityIsIgnored() const
|
|
|
| bool AXListBoxOption::canSetSelectedAttribute() const
|
| {
|
| - if (!m_optionElement)
|
| - return false;
|
| -
|
| - if (!m_optionElement->hasTagName(optionTag))
|
| + if (!isHTMLOptionElement(m_optionElement))
|
| return false;
|
|
|
| if (m_optionElement->isDisabledFormControl())
|
|
|