Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8276800

Fix table headers in NumericShaper.html

XMLWordPrintable

    • 2d
    • 14
    • b24

      java.desktop/java/awt/font/NumericShaper.html does not have proper table headers, fix to improve a11y.

      More specifically, Doccheck [1] flagged it, my understanding is that every row needs to have a unique row header to aid screen readers. The previous code had one cell work as header for two rows.

      One could perhaps look at the standards [2] and implement something even better, but this is what I came up with.

      [1]: https://openjdk.java.net/projects/code-tools/doccheck/
      [2]: https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-headers

            lujaniuk Ludvig Janiuk
            lujaniuk Ludvig Janiuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: