aria-api

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

commit
6ce11519e7646452ff6dbcc370ebe89c6b7f211a
parent
7cf8ed462a4e10e35e01a7f300e686a760cd5264
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2026-02-18 23:20
bump version to 0.9.1

Diffstat

M CHANGES.md 6 ++++++
M dist/aria.js 18 +++++++++++-------
M package.json 2 +-

3 files changed, 18 insertions, 8 deletions


diff --git a/CHANGES.md b/CHANGES.md

@@ -1,3 +1,9 @@
   -1     1 0.9.1 (2026-02-18)
   -1     2 ------------------
   -1     3 
   -1     4 -	fix shadow DOM support for `getName()`
   -1     5 
   -1     6 
    1     7 0.9.0 (2026-02-18)
    2     8 ------------------
    3     9 

diff --git a/dist/aria.js b/dist/aria.js

@@ -1093,13 +1093,17 @@
 1093  1093 		for (let i = 0; i < children.length; i++) {
 1094  1094 			const node = children[i];
 1095  1095 			if (node.nodeType === node.TEXT_NODE) {
 1096    -1 				const styles = window.getComputedStyle(node.parentElement);
 1097    -1 				if (styles.textTransform === 'uppercase') {
 1098    -1 					ret += node.textContent.toUpperCase();
 1099    -1 				} else if (styles.textTransform === 'lowercase') {
 1100    -1 					ret += node.textContent.toLowerCase();
 1101    -1 				} else if (styles.textTransform === 'capitalize') {
 1102    -1 					ret += node.textContent.replace(/\b\w/g, c => c.toUpperCase());
   -1  1096 				if (node.parentElement) {
   -1  1097 					const styles = window.getComputedStyle(node.parentElement);
   -1  1098 					if (styles.textTransform === 'uppercase') {
   -1  1099 						ret += node.textContent.toUpperCase();
   -1  1100 					} else if (styles.textTransform === 'lowercase') {
   -1  1101 						ret += node.textContent.toLowerCase();
   -1  1102 					} else if (styles.textTransform === 'capitalize') {
   -1  1103 						ret += node.textContent.replace(/\b\w/g, c => c.toUpperCase());
   -1  1104 					} else {
   -1  1105 						ret += node.textContent;
   -1  1106 					}
 1103  1107 				} else {
 1104  1108 					ret += node.textContent;
 1105  1109 				}

diff --git a/package.json b/package.json

@@ -1,6 +1,6 @@
    1     1 {
    2     2   "name": "aria-api",
    3    -1   "version": "0.9.0",
   -1     3   "version": "0.9.1",
    4     4   "description": "Access ARIA information from JavaScript",
    5     5   "main": "dist/aria.js",
    6     6   "module": "index.js",