Index: Source/core/accessibility/AXNodeObject.cpp |
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp |
index da26d038230af812a7bc25fe62b37a04317cb11b..9fc3252de8e632584a44a1b6f855fefe3102c080 100644 |
--- a/Source/core/accessibility/AXNodeObject.cpp |
+++ b/Source/core/accessibility/AXNodeObject.cpp |
@@ -660,9 +660,11 @@ bool AXNodeObject::isChecked() const |
if (isHTMLInputElement(*node)) |
return toHTMLInputElement(*node).shouldAppearChecked(); |
- // Else, if this is an ARIA checkbox or radio, respect the aria-checked attribute |
+ // Else, if this is an ARIA checkbox or radio OR ARIA role menuitemcheckbox |
+ // or menuitemradio, respect the aria-checked attribute |
AccessibilityRole ariaRole = ariaRoleAttribute(); |
- if (ariaRole == RadioButtonRole || ariaRole == CheckBoxRole) { |
+ if (ariaRole == RadioButtonRole || ariaRole == CheckBoxRole |
+ || ariaRole == MenuItemCheckBoxRole || ariaRole == MenuItemRadioRole) { |
if (equalIgnoringCase(getAttribute(aria_checkedAttr), "true")) |
return true; |
return false; |