aria-api

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

commit
1d6c96ad81713cf8a2f8716d2c4f7b7efbe3bbcd
parent
59c4ae58633197735b9549f49ffed1778f0ecbd9
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-02-03 09:47
fix: directory is an alias for list

since aria 1.2

Diffstat

M lib/constants.js 4 ++--

1 files changed, 2 insertions, 2 deletions


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

@@ -170,7 +170,6 @@ exports.roles = {
  170   170 		selectors: ['dialog'],
  171   171 		childRoles: ['alertdialog'],
  172   172 	},
  173    -1 	directory: {},
  174   173 	'doc-abstract': {},
  175   174 	'doc-acknowledgments': {},
  176   175 	'doc-afterword': {},
@@ -348,7 +347,7 @@ exports.roles = {
  348   347 	},
  349   348 	list: {
  350   349 		selectors: ['dl', 'ol', 'ul', 'menu'],
  351    -1 		childRoles: ['directory', 'feed'],
   -1   350 		childRoles: ['feed'],
  352   351 	},
  353   352 	listbox: {
  354   353 		selectors: [
@@ -712,6 +711,7 @@ for (const role in exports.roles) {
  712   711 
  713   712 exports.aliases = {
  714   713 	'presentation': 'none',
   -1   714 	'directory': 'list',
  715   715 };
  716   716 
  717   717 exports.nameFromDescendant = {