html-conformv0.2.1

← All examples

Table cell grid

A rowspan and a colspan that claim the same slot, found by laying the table out as a grid. The invalid scope value is reported by the schema and by a Schematron rule.

Table cell grid

examples/showcase/table-grid.html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Table grid</title>
</head>
<body>
  <table>
    <caption>Build matrix</caption>
    <tr><th scope="rows">Target</th><th>Status</th></tr>
    <tr><td>linux</td><td rowspan="2">ok</td></tr>
    <tr><td colspan="2">macos</td></tr>
  </table>
</body>
</html>
error   10:9   schema.html5
  invalid value `rows` for attribute `scope` at 10:9
error   10:9   assertion.tables.th-scope-enum
  A th element's scope attribute must be one of row, col, rowgroup, or
  colgroup.
error   11:23  tables.integrity
  Table cell is overlapped by later table cell.
error   12:9   tables.integrity
  Table cell overlaps an earlier table cell.

4 errors, 0 warnings
  • schema.html5
  • assertion.tables.th-scope-enum
  • tables.integrity