aria-api

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

commit
9e7d766e4b1e900afd57bcbc0350e33e4c903956
parent
4bbf363abf63d56b561a4da3371c1abb8c029a94
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-06-07 10:01
name: add support for aria-description

see https://w3c.github.io/aria/#aria-description

still a draft, but seems uncontroversial

Diffstat

M lib/name.js 2 ++

1 files changed, 2 insertions, 0 deletions


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

@@ -178,6 +178,8 @@ var getDescription = function(el) {
  178   178 			return label ? getName(label, true) : '';
  179   179 		});
  180   180 		ret = strings.join(' ');
   -1   181 	} else if (el.matches('[aria-description]')) {
   -1   182 		ret = el.getAttribute('aria-description');
  181   183 	} else if (el.title) {
  182   184 		ret = el.title;
  183   185 	} else if (el.placeholder) {