RFR: 8325690: The scrollable element <div> with non-interactive content is not tabbable [v29]
Hannes Wallnöfer
hannesw at openjdk.org
Tue Jun 4 10:26:11 UTC 2024
On Mon, 3 Jun 2024 12:33:31 GMT, psoujany <duke at openjdk.org> wrote:
>> The scrollable element `<div>` with non-interactive content is not tabbable. Grid columns in the javadoc stylesheet has overflow: auto, which is failing Accessibility checks.
>> https://bugs.openjdk.org/browse/JDK-8325690
>
> psoujany has updated the pull request incrementally with one additional commit since the last revision:
>
> Add tabindex to tabbable elements
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/Table.java line 334:
> 332: cell.addStyle(rowStyle);
> 333: if (!matchFound) {
> 334: cell.put(HtmlAttr.ROLE, "tablist")
Looking into this further, I don't think the `role="tablist"` attribute is correct here. According to the [MDN documentation], a `tablist` is defined as a container for a set of `tabs`, which does not apply for table cells.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17819#discussion_r1625750412
More information about the javadoc-dev
mailing list