Skip to content

Commit 64a7fd6

Browse files
authored
Merge pull request #1344 from mathjax/fix/aria-level
Remove use of aria-level
2 parents 451bd4e + 4b8c0cb commit 64a7fd6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ts/a11y/explorer/KeyExplorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ export class SpeechExplorer
834834
const parts = [
835835
[
836836
this.node.getAttribute('data-semantic-level') ?? 'Level',
837-
this.current.getAttribute('aria-level') ?? '0',
837+
this.current.getAttribute('data-semantic-level-number') ?? '0',
838838
]
839839
.join(' ')
840840
.trim(),

ts/a11y/semantic-enrich.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export function EnrichedMathItemMixin<
209209
//
210210
math.math = math.math
211211
.replace(/ role="treeitem"/g, ' data-speech-node="true"')
212+
.replace(/ aria-level/g, ' data-semantic-level-number')
212213
.replace(/ aria-(?:posinset|owns|setsize)=".*?"/g, '');
213214
math.display = this.display;
214215
math.compile(document);

0 commit comments

Comments
 (0)