diff --git a/accessible/src/base/nsAccessibilityAtomList.h b/accessible/src/base/nsAccessibilityAtomList.h index 51a698ff4ae..b0c66e3fe30 100755 --- a/accessible/src/base/nsAccessibilityAtomList.h +++ b/accessible/src/base/nsAccessibilityAtomList.h @@ -231,7 +231,7 @@ ACCESSIBILITY_ATOM(aria_valuetext, "aria-valuetext") ACCESSIBILITY_ATOM(defaultLabel, "defaultLabel") // Object attributes -ACCESSIBILITY_ATOM(cellIndex, "cell-index") +ACCESSIBILITY_ATOM(tableCellIndex, "table-cell-index") ACCESSIBILITY_ATOM(containerAtomic, "container-atomic") ACCESSIBILITY_ATOM(containerBusy, "container-busy") ACCESSIBILITY_ATOM(containerChannel, "container-channel") diff --git a/accessible/src/html/nsHTMLTableAccessible.cpp b/accessible/src/html/nsHTMLTableAccessible.cpp index f75e955ea2b..5c26c853767 100644 --- a/accessible/src/html/nsHTMLTableAccessible.cpp +++ b/accessible/src/html/nsHTMLTableAccessible.cpp @@ -124,7 +124,7 @@ nsHTMLTableCellAccessible::GetAttributesInternal(nsIPersistentProperties *aAttri nsAutoString stringIdx; stringIdx.AppendInt(idx); - nsAccUtils::SetAccAttr(aAttributes, nsAccessibilityAtoms::cellIndex, + nsAccUtils::SetAccAttr(aAttributes, nsAccessibilityAtoms::tableCellIndex, stringIdx); return NS_OK; } diff --git a/accessible/tests/mochitest/test_table_indexes.html b/accessible/tests/mochitest/test_table_indexes.html index 41e4d056527..a291a5e19d7 100644 --- a/accessible/tests/mochitest/test_table_indexes.html +++ b/accessible/tests/mochitest/test_table_indexes.html @@ -89,7 +89,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=410052 if (cellAcc) { var attrs = cellAcc.attributes; - is (parseInt(attrs.getStringProperty("cell-index")), index, + is (parseInt(attrs.getStringProperty("table-cell-index")), index, aId + ": cell index from object attributes of cell accessible isn't corrent."); } }