Index: Source/core/accessibility/AXTable.cpp |
diff --git a/Source/core/accessibility/AXTable.cpp b/Source/core/accessibility/AXTable.cpp |
index 391cf459976dfca87cd77ba547c0d682c2c8160f..ba4b9e01c2069a5ceb15eeb2c35a3318cc74da59 100644 |
--- a/Source/core/accessibility/AXTable.cpp |
+++ b/Source/core/accessibility/AXTable.cpp |
@@ -144,7 +144,7 @@ bool AXTable::isDataTable() const |
Element* rowElement = rows->item(rowIndex); |
if (elementHasAriaRole(rowElement)) |
return false; |
- if (rowElement->hasTagName(trTag)) { |
+ if (isHTMLTableRowElement(*rowElement)) { |
RefPtrWillBeRawPtr<HTMLCollection> cells = toHTMLTableRowElement(rowElement)->cells(); |
for (unsigned cellIndex = 0; cellIndex < cells->length(); ++cellIndex) { |
if (elementHasAriaRole(cells->item(cellIndex))) |