bool AccessibilityListBoxOption::canSetSelectedAttribute() const { if (!m_optionElement) return false; if (!m_optionElement->hasTagName(optionTag)) return false; if (m_optionElement->disabled()) return false; HTMLSelectElement* selectElement = listBoxOptionParentNode(); if (selectElement && selectElement->disabled()) return false; return true; }