Skip to content

Commit 07921fe

Browse files
committed
bump version to 0.9.1
1 parent 05e2621 commit 07921fe

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.9.1 (2026-02-18)
2+
------------------
3+
4+
- fix shadow DOM support for `getName()`
5+
6+
17
0.9.0 (2026-02-18)
28
------------------
39

dist/aria.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,13 +1093,17 @@
10931093
for (let i = 0; i < children.length; i++) {
10941094
const node = children[i];
10951095
if (node.nodeType === node.TEXT_NODE) {
1096-
const styles = window.getComputedStyle(node.parentElement);
1097-
if (styles.textTransform === 'uppercase') {
1098-
ret += node.textContent.toUpperCase();
1099-
} else if (styles.textTransform === 'lowercase') {
1100-
ret += node.textContent.toLowerCase();
1101-
} else if (styles.textTransform === 'capitalize') {
1102-
ret += node.textContent.replace(/\b\w/g, c => c.toUpperCase());
1096+
if (node.parentElement) {
1097+
const styles = window.getComputedStyle(node.parentElement);
1098+
if (styles.textTransform === 'uppercase') {
1099+
ret += node.textContent.toUpperCase();
1100+
} else if (styles.textTransform === 'lowercase') {
1101+
ret += node.textContent.toLowerCase();
1102+
} else if (styles.textTransform === 'capitalize') {
1103+
ret += node.textContent.replace(/\b\w/g, c => c.toUpperCase());
1104+
} else {
1105+
ret += node.textContent;
1106+
}
11031107
} else {
11041108
ret += node.textContent;
11051109
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aria-api",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"description": "Access ARIA information from JavaScript",
55
"main": "dist/aria.js",
66
"module": "index.js",

0 commit comments

Comments
 (0)