aria-api

access ARIA information from JavaScript
git clone https://git.ce9e.org/aria-api.git

commit
8904cd60c25f04f2bf7859a1570b58df3593c667
parent
3d3015b77e497494e3a380836a60171bbfc124c0
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-02-03 09:32
fix: add missing rowheader selector

Diffstat

M lib/constants.js 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/lib/constants.js b/lib/constants.js

@@ -103,7 +103,7 @@ exports.roles = {
  103   103 		selectors: ['caption', 'figcaption'],
  104   104 	},
  105   105 	cell: {
  106    -1 		selectors: ['td', 'th:not([scope])'],
   -1   106 		selectors: ['td', 'td ~ th:not([scope])'],
  107   107 		childRoles: ['columnheader', 'gridcell', 'rowheader'],
  108   108 		nameFromContents: true,
  109   109 	},
@@ -397,7 +397,7 @@ exports.roles = {
  397   397 		selectors: ['tbody', 'thead', 'tfoot'],
  398   398 	},
  399   399 	rowheader: {
  400    -1 		selectors: ['th[scope="row"]'],
   -1   400 		selectors: ['th[scope="row"]', 'th:not([scope]):not(td ~ th)'],
  401   401 		nameFromContents: true,
  402   402 	},
  403   403 	scrollbar: {