aria-api

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

commit
5212313b0aeed29b4a91a5caa019b77195d8ce1f
parent
8904cd60c25f04f2bf7859a1570b58df3593c667
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-02-02 17:50
fix: add selectors for generic role

Diffstat

M lib/constants.js 22 +++++++++++++++++++++-

1 files changed, 21 insertions, 1 deletions


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

@@ -199,7 +199,27 @@ exports.roles = {
  199   199 		selectors: ['form[aria-label]', 'form[aria-labelledby]', 'form[title]'],
  200   200 	},
  201   201 	generic: {
  202    -1 		// too many selectors to list
   -1   202 		selectors: [
   -1   203 			'a:not([href])',
   -1   204 			'area:not([href])',
   -1   205 			`aside:not(${scoped}):not([aria-label]):not([aria-labelledby]):not([title])`,
   -1   206 			'b',
   -1   207 			'bdi',
   -1   208 			'bdo',
   -1   209 			'body',
   -1   210 			'data',
   -1   211 			'div',
   -1   212 			// footer scoped
   -1   213 			// header scoped
   -1   214 			'i',
   -1   215 			'pre',
   -1   216 			'q',
   -1   217 			'samp',
   -1   218 			'section:not([aria-label]):not([aria-labelledby]):not([title])',
   -1   219 			'small',
   -1   220 			'span',
   -1   221 			'u',
   -1   222 		],
  203   223 	},
  204   224 	'graphics-document': {
  205   225 		selectors: ['svg'],