<script type="application/javascript">
function isLayoutTable(id) {
// This helps us know if the absence of layout-guess is simply because
// it is not a table.
ok(isAccessible(id, nsIAccessibleTable), `${id} has table interface`);
testAttrs(id, { "layout-guess": "true" }, true);
}
function isDataTable(id) {
testAbsentAttrs(id, { "layout-guess": "true" });
}
function doTest() {
// table with role of grid
isDataTable("table1");
// table with role of grid and datatable="0"
isDataTable("table1.1");
// table with landmark role
isDataTable("table2");
// table with summary
isDataTable("table3");
// table with caption
isDataTable("table4");
// layout table with empty caption
isLayoutTable("table4.2");
// table with thead element
isDataTable("table5");
// table with tfoot element
isDataTable("table5.1");
// table with colgroup or col elements
isDataTable("table5.2");
isDataTable("table5.3");
// table with th element
isDataTable("table6");
// table with headers attribute
isDataTable("table6.2");
// table with scope attribute
isDataTable("table6.2.2");
// table with abbr attribute
isDataTable("table6.2.3");
// table with abbr element
isDataTable("table6.3");
// table with abbr element having empty text node
isDataTable("table6.4");
// table with abbr element and non-empty text node
isLayoutTable("table6.5");
// layout table with nested table
isLayoutTable("table9");
// layout table with 1 column
isLayoutTable("table10");
// layout table with 1 row
isLayoutTable("table11");
// table with 5 columns
isDataTable("table12");
// table with a bordered cell
isDataTable("table13");
// table with alternating row background colors
isDataTable("table14");
// table with 3 columns and 21 rows
isDataTable("table15");
// layout table that has a 100% width
isLayoutTable("table16");
// layout table that has a 95% width in pixels
isLayoutTable("table17");
// layout table with less than 10 columns
isLayoutTable("table18");
// layout table with embedded iframe
isLayoutTable("table19");
// tree grid, no layout table
isDataTable("table20");
// layout table containing nested data table (having data structures)
isLayoutTable("table21");
isLayoutTable("table21.2");
isLayoutTable("table21.3");
isLayoutTable("table21.4");
isLayoutTable("table21.5");
isLayoutTable("table21.6");
// layout table having datatable="0" attribute and containing data table structure (tfoot element)
isLayoutTable("table22");
// repurposed table for tabbed UI
isLayoutTable("table23");
// data table that has a nested table but has non-zero border width on a cell
isDataTable("table24");
// layout display:block table with 1 column
isLayoutTable("displayblock_table1");
<!-- table with abbr element -->
<table id="table6.3">
<tr>
<td>table6.3 cell1</td>
<td><abbr>table6.3 cell2</abbr></td>
</tr>
</table>
<!-- table with abbr element having empty text node -->
<table id="table6.4">
<tr>
<td>
<abbr>abbr</abbr>
</td>
</tr>
</table>
<!-- table with abbr element and non-empty text node -->
<table id="table6.5">
<tr>
<td>
This is a really long text (<abbr>tiarlt</abbr>) inside layout table
</td>
</tr>
</table>
<!-- layout table with 1 row and purposely many columns -->
<table id="table11">
<tr><td>Col1</td><td>Col2</td><td>Col3</td><td>Col4</td><td>Col5</td></tr>
</table>
<!-- layout table that has a 100% width -->
<table id="table16" width="100%">
<tr><td>Col1</td><td>Col2</td><td>Col3</td></tr>
<tr><td>Col1</td><td>Col2</td><td>Col3</td></tr>
</table>
<!-- layout table that has a 95% width in pixels -->
<table id="table17" width="98%">
<tr><td>Col1</td><td>Col2</td><td>Col3</td></tr>
<tr><td>Col1</td><td>Col2</td><td>Col3</td></tr>
</table>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.