aria-role isn't a valid aria attribute

aria-role isn't a valid aria attribute

oakaysoakays Posts: 1Questions: 1Answers: 0

When paging is enabled, the buttons for switching which numbered page is shown have the attribute aria-role="link". Instead of aria-role it should just be role. Lighthouse will highlight this as an accessibility error. This is present in 1.13.4 but not 1.12.1.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/link_role

The error is present on the default https://live.datatables.net/

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Thanks for pointing that out! I always forget that it has special naming that attribute!

    Corrected here and it will be in the next release.

    Regards,
    Allan

Sign In or Register to comment.