aria-api

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

commit
9bfd594ff7439ddee791e8eddfbddd12502f124e
parent
fd6b4c3cceead0896c9a6c83a6329ac32d0095c8
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-06-21 16:11
aria 1.3: rename img role to image

Diffstat

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

1 files changed, 3 insertions, 2 deletions


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

@@ -324,7 +324,7 @@ exports.roles = {
  324   324 			'level': 2,
  325   325 		},
  326   326 	},
  327    -1 	img: {
   -1   327 	image: {
  328   328 		selectors: [
  329   329 			'img:not([alt=""])',
  330   330 			'graphics-symbol',
@@ -542,7 +542,7 @@ exports.roles = {
  542   542 			'emphasis',
  543   543 			'figure',
  544   544 			'group',
  545    -1 			'img',
   -1   545 			'image',
  546   546 			'insertion',
  547   547 			'landmark',
  548   548 			'list',
@@ -749,6 +749,7 @@ for (const role in exports.roles) {
  749   749 exports.aliases = {
  750   750 	'presentation': 'none',
  751   751 	'directory': 'list',
   -1   752 	'img': 'image',
  752   753 };
  753   754 
  754   755 exports.nameFromDescendant = {