mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 287740 - expose axis object attribute on table cells, r=marcoz
This commit is contained in:
parent
2d482f7133
commit
4a30ef1f61
@ -160,6 +160,12 @@ nsHTMLTableCellAccessible::GetAttributesInternal(nsIPersistentProperties *aAttri
|
||||
if (!abbrText.IsEmpty())
|
||||
nsAccUtils::SetAccAttr(aAttributes, nsGkAtoms::abbr, abbrText);
|
||||
|
||||
// axis attribute
|
||||
nsAutoString axisText;
|
||||
mContent->GetAttr(kNameSpaceID_None, nsGkAtoms::axis, axisText);
|
||||
if (!axisText.IsEmpty())
|
||||
nsAccUtils::SetAccAttr(aAttributes, nsGkAtoms::axis, axisText);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -94,6 +94,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=558036
|
||||
testAttrs("draggable", {"draggable" : "true"}, true);
|
||||
testAttrs("th1", { "abbr": "SS#" }, true);
|
||||
testAttrs("th2", { "abbr": "SS#" }, true);
|
||||
testAttrs("th2", { "axis": "social" }, true);
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
@ -180,7 +181,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=558036
|
||||
<table>
|
||||
<tr>
|
||||
<th id="th1"><abbr title="Social Security Number">SS#</abbr></th>
|
||||
<th id="th2" abbr="SS#">Social Security Number</th>
|
||||
<th id="th2" abbr="SS#" axis="social">Social Security Number</th>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user