aria-api

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

commit
29942bc0d480da4801b902873b2f043d66d21adc
parent
e0e5b5f4fb8924974d83ce8a15601b8727a472ff
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-06-22 18:44
name: do not consider button in step E

Diffstat

M lib/name.js 2 +-

1 files changed, 1 insertions, 1 deletions


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

@@ -90,7 +90,7 @@ const getName = function(el, recursive, visited, directReference) {
   90    90 
   91    91 	// E (the current draft has this at this high priority)
   92    92 	if (!ret.trim() && recursive) {
   93    -1 		if (query.matches(el, 'textbox,button')) {
   -1    93 		if (query.matches(el, 'textbox')) {
   94    94 			ret = el.value || el.textContent;
   95    95 		} else if (query.matches(el, 'combobox,listbox')) {
   96    96 			const selected = query.querySelector(el, ':selected') || query.querySelector(el, 'option');