Skip to content

Commit 4b8c0cb

Browse files
committed
Remove use of aria-level
1 parent afaf1ea commit 4b8c0cb

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
@@ -829,7 +829,7 @@ export class SpeechExplorer
829829
const parts = [
830830
[
831831
this.node.getAttribute('data-semantic-level') ?? 'Level',
832-
this.current.getAttribute('aria-level') ?? '0',
832+
this.current.getAttribute('data-semantic-level-number') ?? '0',
833833
]
834834
.join(' ')
835835
.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)