From 87a8e6fc534e018278e1c0953e6c385e0e2ed283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Lide=CC=81n?= Date: Fri, 20 Sep 2024 10:20:51 +0200 Subject: [PATCH] add support for ariaBrailleLabel and ariaBrailleRoleDescription --- README.md | 2 ++ jsdom-tests/polyfill.js | 2 ++ src/aom.ts | 2 ++ src/element-internals.ts | 2 ++ src/types.ts | 2 ++ 5 files changed, 10 insertions(+) diff --git a/README.md b/README.md index eaae8f9..a909cd1 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,8 @@ In addition to form controls, `ElementInternals` will also surface several acces - `ariaAtomic`: 'aria-atomic' - `ariaAutoComplete`: 'aria-autocomplete' +- `ariaBrailleLabel`: 'aria-braillelabel' +- `ariaBrailleRoleDescription`: 'aria-brailleroledescription' - `ariaBusy`: 'aria-busy' - `ariaChecked`: 'aria-checked' - `ariaColCount`: 'aria-colcount' diff --git a/jsdom-tests/polyfill.js b/jsdom-tests/polyfill.js index 8e08719..cceccff 100644 --- a/jsdom-tests/polyfill.js +++ b/jsdom-tests/polyfill.js @@ -20,6 +20,8 @@ const aom = { ariaAtomic: 'aria-atomic', ariaAutoComplete: 'aria-autocomplete', + ariaBrailleLabel: 'aria-braillelabel', + ariaBrailleRoleDescription: 'aria-brailleroledescription', ariaBusy: 'aria-busy', ariaChecked: 'aria-checked', ariaColCount: 'aria-colcount', diff --git a/src/aom.ts b/src/aom.ts index 547ef89..e3a04d8 100644 --- a/src/aom.ts +++ b/src/aom.ts @@ -4,6 +4,8 @@ import { IAom, IElementInternals } from './types.js'; export const aom: IAom = { ariaAtomic: 'aria-atomic', ariaAutoComplete: 'aria-autocomplete', + ariaBrailleLabel: 'aria-braillelabel', + ariaBrailleRoleDescription: 'aria-brailleroledescription', ariaBusy: 'aria-busy', ariaChecked: 'aria-checked', ariaColCount: 'aria-colcount', diff --git a/src/element-internals.ts b/src/element-internals.ts index d1f0fe9..04e2c90 100644 --- a/src/element-internals.ts +++ b/src/element-internals.ts @@ -30,6 +30,8 @@ import { patchFormPrototype } from './patch-form-prototype.js'; export class ElementInternals implements IElementInternals { ariaAtomic: string; ariaAutoComplete: string; + ariaBrailleLabel: string; + ariaBrailleRoleDescription: string; ariaBusy: string; ariaChecked: string; ariaColCount: string; diff --git a/src/types.ts b/src/types.ts index e3b0274..b16d272 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,6 +4,8 @@ import { ElementInternals } from './element-internals.js'; export interface IAom { ariaAtomic: string; ariaAutoComplete: string; + ariaBrailleLabel: string; + ariaBrailleRoleDescription: string; ariaBusy: string; ariaChecked: string; ariaColCount: string;