mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1484248 - Accessible name calculation from label content should include cells. r=surkov
Change the name calculation rule of HTML 'table' element from eNoNameRule to eNameFromSubtreeIfReqRule. That way the table won't get an accessible name, but will be descended when building a name from a parent element's contents. --HG-- extra : rebase_source : 218aec9f90b0c420a5f6785e929e5512b6704567
This commit is contained in:
parent
df1c9fe032
commit
7471d4968b
@ -239,7 +239,7 @@ ROLE(TABLE,
|
||||
ROLE_SYSTEM_TABLE,
|
||||
ROLE_SYSTEM_TABLE,
|
||||
"android.widget.GridView",
|
||||
eNoNameRule)
|
||||
eNameFromSubtreeIfReqRule)
|
||||
|
||||
ROLE(COLUMNHEADER,
|
||||
"columnheader",
|
||||
|
@ -37,6 +37,11 @@
|
||||
// more own inner text, separated by 1 space.
|
||||
testName("chkbx", "Flash the screen 5 times");
|
||||
|
||||
// Example 4 from section 4.3.1 under 2.F.
|
||||
// Name from content should include all the child nodes, including
|
||||
// table cells.
|
||||
testName("input_with_html_label", "foo bar baz");
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
@ -73,5 +78,14 @@
|
||||
<!-- Label from combined text and subtree -->
|
||||
<div id="chkbx" role="checkbox" aria-checked="false">Flash the screen
|
||||
<span role="textbox" aria-multiline="false"> 5 </span> times</div>
|
||||
|
||||
<!-- Label with name from content should include table -->
|
||||
<input id="input_with_html_label" />
|
||||
<label for="input_with_html_label" id="label">
|
||||
<div>foo</div>
|
||||
<table><tr><td>bar</td></tr></table>
|
||||
<div>baz</div>
|
||||
</label>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user