Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5222

Automatically add scope attribute in generated table header cells in XHTML renderer

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3, 2.2.6
    • Fix Version/s: 2.4 M1
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      For Dutch Web Guidelines validity a <th> have to contains scope
      attribute (scope="col" or scope="row") which means that default wiki
      tables are invalid currently.

      See http://www.w3.org/TR/xhtml2/mod-tables.html#non-visual-rendering
      for example of scope attribute use.

      I propose to modify XHTML renderer table header cell to do the following:

      • if a scope is explicitly provided reuse it
      • if there is no scope:
        • if first line or not first column: <th scope="col">
        • if not first line and first column: <th scope="row">

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: