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

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.4 M1
    • 2.3, 2.2.6
    • {Unused} Rendering 2.0
    • None
    • Unit
    • Unknown

    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

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

            Dates

              Created:
              Updated:
              Resolved: