Index: Source/core/accessibility/AXRenderObject.cpp |
diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp |
index 7e91919e22e80b4a5b118990c8aa9b5ea3d54b48..1dcda41dcd15cc8476be780e4494526bf0ffd9f9 100644 |
--- a/Source/core/accessibility/AXRenderObject.cpp |
+++ b/Source/core/accessibility/AXRenderObject.cpp |
@@ -297,6 +297,11 @@ AccessibilityRole AXRenderObject::determineAccessibilityRole() |
return ImageRole; |
} |
+ // This is for the case where the fallback content kicks in. |
+ // The normal case should be handled in the case above |
+ if (node && node->hasTagName(HTMLNames::imgTag)) |
+ return ImageRole; |
+ |
// Note: if JavaScript is disabled, the renderer won't be a RenderHTMLCanvas. |
if (isHTMLCanvasElement(node) && m_renderer->isCanvas()) |
return CanvasRole; |