Index: Source/core/accessibility/AXNodeObject.cpp |
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp |
index 383cf33a981b70241fca1184d67fb5730a44b990..faa8cb45b792b281d734349b58885d77f98582af 100644 |
--- a/Source/core/accessibility/AXNodeObject.cpp |
+++ b/Source/core/accessibility/AXNodeObject.cpp |
@@ -220,8 +220,11 @@ AccessibilityRole AXNodeObject::determineAccessibilityRole() |
|| type == InputTypeNames::month |
|| type == InputTypeNames::week) |
return DateTimeRole; |
- if (type == InputTypeNames::radio) |
+ if (type == InputTypeNames::radio) { |
+ if ((node()->parentNode() && isHTMLMenuElement(node()->parentNode())) || (parentObject() && parentObject()->roleValue() == MenuRole)) |
+ return MenuItemRadioRole; |
Mike West
2014/10/13 13:42:40
The checkbox above is named CheckBoxMenuItemRole,
dmazzoni
2014/10/13 14:26:48
CheckBoxMenuItemRole was deleted in favor of MenuI
|
return RadioButtonRole; |
+ } |
if (input.isTextButton()) |
return buttonRoleType(); |
if (type == InputTypeNames::range) |