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

Add structural HTML elements for table rows

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 16, 17, 18, 19, 20, 21
    • tools

      Since we are using CSS grid layout for tables in javadoc generated pages (JDK-8253117) the structure of table data is no longer reflected in the markup - it's just a linear sequence of `<div>` elements with specific attributes.

      It would be nice to have HTML elements that semantically represent table rows again. The most likely way we can implement this is by using the `display: contents` CSS property which allows to apply grid layout to the child nodes of a grid element. This article [https://hidde.blog/more-accessible-markup-with-display-contents/] gives a good overview about the state of `display: contents` and its role for more accessible web pages.

      `display:contents` is now implemented in most browsers we support[1], but we also must make sure our solution renders gracefully on older browsers, which may force us to delay this enhancement for a bit.

      [1]: https://caniuse.com/css-display-contents

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: