diff --git a/ts/a11y/explorer/KeyExplorer.ts b/ts/a11y/explorer/KeyExplorer.ts index 943def94d..e628c6bbe 100644 --- a/ts/a11y/explorer/KeyExplorer.ts +++ b/ts/a11y/explorer/KeyExplorer.ts @@ -829,7 +829,7 @@ export class SpeechExplorer const parts = [ [ this.node.getAttribute('data-semantic-level') ?? 'Level', - this.current.getAttribute('aria-level') ?? '0', + this.current.getAttribute('data-semantic-level-number') ?? '0', ] .join(' ') .trim(), diff --git a/ts/a11y/semantic-enrich.ts b/ts/a11y/semantic-enrich.ts index 61c776f3f..82085fa1c 100644 --- a/ts/a11y/semantic-enrich.ts +++ b/ts/a11y/semantic-enrich.ts @@ -209,6 +209,7 @@ export function EnrichedMathItemMixin< // math.math = math.math .replace(/ role="treeitem"/g, ' data-speech-node="true"') + .replace(/ aria-level/g, ' data-semantic-level-number') .replace(/ aria-(?:posinset|owns|setsize)=".*?"/g, ''); math.display = this.display; math.compile(document);