Moodle

Table cell associations

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7
  • Fix Version/s: 1.8
  • Component/s: Accessibility
  • Labels:
    None
  • Affected Branches:
    MOODLE_17_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE

Description

For data tables, use the elements (markers) and attributes provided by the DTD used to associate data cells and header cells which have two or more logical levels of row or column headers.

WCAG 1.0 References: 5.2
Sec. 508 References: 1194.22 (h)

Activity

Hide
Yu Zhang added a comment -

5.2 For data tables that have two or more logical levels of row or column headers, use markup to associate data cells and header cells. [Priority 1]

For example, in HTML, use THEAD, TFOOT, and TBODY to group rows, COL and COLGROUP to group columns, and the "axis", "scope", and "headers" attributes, to describe more complex relationships among data.

Show
Yu Zhang added a comment - 5.2 For data tables that have two or more logical levels of row or column headers, use markup to associate data cells and header cells. [Priority 1] For example, in HTML, use THEAD, TFOOT, and TBODY to group rows, COL and COLGROUP to group columns, and the "axis", "scope", and "headers" attributes, to describe more complex relationships among data.
Hide
Yu Zhang added a comment -

In gradebook, User names should be headers with scope = "row". Almost all moodle table has <th> tag. We may need to add the default scope to column in all tables.

Show
Yu Zhang added a comment - In gradebook, User names should be headers with scope = "row". Almost all moodle table has <th> tag. We may need to add the default scope to column in all tables.
Hide
Yu Zhang added a comment -

Added table header scope to all <th>s in moodle. Added code to tablelib and weblib, so when creating new tables headers always come with default scope="col".

Show
Yu Zhang added a comment - Added table header scope to all <th>s in moodle. Added code to tablelib and weblib, so when creating new tables headers always come with default scope="col".

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: