Index: Source/core/accessibility/AXNodeObject.cpp |
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp |
index 7f663aa8817b6fbc4f92b07476e72f44139da862..6705943655a3b77abf87595f4c812712dc42e2a9 100644 |
--- a/Source/core/accessibility/AXNodeObject.cpp |
+++ b/Source/core/accessibility/AXNodeObject.cpp |
@@ -245,7 +245,7 @@ AccessibilityRole AXNodeObject::determineAriaRoleAttribute() const |
AccessibilityRole role = ariaRoleToWebCoreRole(ariaRole); |
// ARIA states if an item can get focus, it should not be presentational. |
- if (role == PresentationalRole && canSetFocusAttribute()) |
+ if ((role == NoneRole || role == PresentationalRole) && canSetFocusAttribute()) |
return UnknownRole; |
if (role == ButtonRole) |