Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): v4.8.0 #4146

Merged
merged 55 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
6850af8
Merge pull request #4042 from dequelabs/master
straker May 25, 2023
0e73be0
perf(get-element-stack): improve getElementStack performance on large…
qazwsxedcrfvtgb1111 May 30, 2023
d0a49d3
test: fix implicit test dependencies on local dev environment (#4053)
dbjorge Jun 13, 2023
173f29d
fix(aria-allowed-role): add meter to allowed roles for named img (#4055)
scottaohara Jun 16, 2023
8d135dd
fix: avoid problems from element IDs that exist on object prototype (…
WilcoFiers Jun 22, 2023
16c5cfa
fix: avoid memory issues by doing better cleanup (#4059)
WilcoFiers Jun 22, 2023
ab4879c
chore(rules): avoid passing unnecessary info into afters (#4049)
WilcoFiers Jun 27, 2023
733c45e
feat: deprecate & disable duplicate-id / duplicate-id-active (#4071)
WilcoFiers Jun 29, 2023
de3da89
feat: add EN.301.549 tags to rules (#4063)
WilcoFiers Jun 29, 2023
55000d0
fix(utils/clone): don't try to clone elements from different window c…
straker Jun 30, 2023
9f1a3e3
feat(duplicate-id-aria): set to review on fail and tag as wcag412 (#4…
WilcoFiers Jul 3, 2023
481ade0
docs(api.md): note preloading may be skipped even if enabled (#4077)
dbjorge Jul 3, 2023
03f2771
feat: add rule aria-deprecated-role (#4074)
straker Jul 10, 2023
6ca38f6
fix(aria-allowed-role): Add doc-glossary to allowed roles for aside e…
scottaohara Jul 10, 2023
9d5f496
fix(color-contrast): correctly handle flex and position (#4086)
straker Jul 13, 2023
13acffe
fix(color-contrast): get text stoke from offset shadows (#4079)
WilcoFiers Jul 14, 2023
f151508
chore: enable eslint:no-shadow (#4089)
straker Jul 14, 2023
7b115d3
feat(aria-prohibited-attr): add rule aria-prohibited-attr (#4088)
straker Jul 14, 2023
7c5f991
feat(d.ts): improve axe.d.ts types (#4081)
hamax Jul 19, 2023
bba4d75
ci: update `browser-tools` version (#4100)
michael-siek Jul 24, 2023
034038a
feat(checks): enable help-same-as-label, but remove from rules (#4096)
WilcoFiers Jul 24, 2023
e031d68
feat(aria-input/toggle-field-name): set impact always to serious (#4095)
WilcoFiers Jul 24, 2023
c6e07be
feat(page-no-duplicate-banner/contentinfo): deprecate options.nativeS…
straker Jul 26, 2023
049522e
fix(color-contrast): ignore format unicode characters (#4102)
straker Jul 26, 2023
a202b69
fix(aria-required-childen): test visibility of grandchildren (#4091)
WilcoFiers Jul 27, 2023
9634282
fix(color-contrast): process non-rgb color functions (#4092)
WilcoFiers Jul 27, 2023
d77f47b
fix(commons/dom/createGrid): only add the visible, non-overflow areas…
straker Jul 28, 2023
cab6a2b
fix: Use correct copyright year (#4098)
stephenmathieson Jul 31, 2023
d417630
feat: add rule aria-conditional-attr (#4094)
WilcoFiers Jul 31, 2023
6260a2f
feat(new-rule): aria-braille-equivalent finds incorrect uses of aria-…
WilcoFiers Jul 31, 2023
5cc8041
feat(impact): aria-roles / aria-valid-attr-value is always "critical"…
WilcoFiers Jul 31, 2023
131f552
feat(impact): scope-attr-valid is always "moderate" (#4113)
WilcoFiers Jul 31, 2023
758b069
chore: modernized rule generator (#4106)
WilcoFiers Aug 1, 2023
c4c3e65
fix(aria-valid-attr-value): allow empty value on aria-braille* & ari…
WilcoFiers Aug 1, 2023
637bf6c
fix: add <search> element semantics (#4115)
WilcoFiers Aug 1, 2023
2cc5547
feat: Deprecate impact on checks, use rules instead (#4114)
WilcoFiers Aug 1, 2023
33b0314
fix(jsdom): allow axe.setup() without a global window (#4116)
WilcoFiers Aug 2, 2023
080cc1b
fix: ensure reporter errors can propagate (#4111)
WilcoFiers Aug 3, 2023
4deb0a0
fix(color-contrast): ignore zero width characters (#4103)
straker Aug 7, 2023
fcf76e0
fix(aria-allowed-attr): pass aria-expanded on checkbox & switch (#4110)
WilcoFiers Aug 8, 2023
49eaa0e
fix(target-size): update to match new spacing requirements (#4117)
straker Aug 8, 2023
53c7ee4
chore(aria-braille-equivalent): Update to be reviewOnFail (#4123)
WilcoFiers Aug 8, 2023
fbe99bf
fix(access-name): get name from header elements (#4097)
WilcoFiers Aug 8, 2023
8557f3e
chore(i18n): Add missing french rules translations (#3919)
KuSh Aug 21, 2023
1494b4c
fix(target-size): correctly calculate bounding box (#4125)
straker Aug 21, 2023
381b2c3
refactor: make element spec processing more cosistent (#4093)
dbjorge Aug 21, 2023
85a0e9c
fix(aria-text): typo in rule description (#4131)
ma10 Aug 22, 2023
0316e72
chore(braille-roledescription): correct pass message (#4133)
WilcoFiers Aug 23, 2023
991e4c1
chore(i18n): Update and correct Japanese translation (#4018)
ma10 Aug 29, 2023
b78fba6
ci: pin chrome version (#4143)
michael-siek Aug 31, 2023
2bddcaf
docs: make quotes usage consistent in messages of rules and checks (#…
ma10 Sep 5, 2023
a7e5383
docs(i18n): Update PL localisation
zwiastunsw Sep 5, 2023
d7c16a4
fix: ignore stylesheets fetching style tag in jsdom (#4138)
EduSantosBrito Sep 5, 2023
71e6cd0
chore(release): 4.8.0
attest-team-ci Sep 6, 2023
59c3cf2
:robot: Automated formatting fixes
attest-team-ci Sep 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 18 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ unix_nightly_box: &unix_nightly_box

orbs:
puppeteer: threetreeslight/puppeteer@0.1.2
browser-tools: circleci/browser-tools@1.4.0
browser-tools: circleci/browser-tools@1.4.4

set_npm_auth: &set_npm_auth
run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
Expand All @@ -30,6 +30,13 @@ restore_build: &restore_build
keys:
- v9-cache-build-<< pipeline.git.revision >>

commands:
browser-tools-job:
steps:
- browser-tools/install-browser-tools:
# TODO: remove when chromedriver downloads are fixed
chrome-version: 116.0.5845.96

jobs:
# Fetch and cache dependencies.
dependencies_unix:
Expand All @@ -47,7 +54,7 @@ jobs:
else
echo "node_modules does not exist"
fi
- browser-tools/install-browser-tools
- browser-tools-job
- <<: *set_npm_auth
- run: npm ci
- run: npx browser-driver-manager install chromedriver --verbose
Expand Down Expand Up @@ -85,7 +92,7 @@ jobs:
<<: *unix_box
steps:
- checkout
- browser-tools/install-browser-tools
- browser-tools-job
- <<: *restore_dependency_cache_unix
- run: npx browser-driver-manager install chromedriver --verbose
- <<: *restore_build
Expand All @@ -97,7 +104,7 @@ jobs:
<<: *unix_box
steps:
- checkout
- browser-tools/install-browser-tools
- browser-tools-job
- <<: *restore_dependency_cache_unix
- <<: *restore_build
- run: npm run test -- --browsers Firefox
Expand All @@ -109,7 +116,7 @@ jobs:
<<: *unix_box
steps:
- checkout
- browser-tools/install-browser-tools
- browser-tools-job
- <<: *restore_dependency_cache_unix
- run: npx browser-driver-manager install chromedriver --verbose
- <<: *restore_build
Expand All @@ -121,7 +128,7 @@ jobs:
<<: *unix_box
steps:
- checkout
- browser-tools/install-browser-tools
- browser-tools-job
- <<: *restore_dependency_cache_unix
- run: npx browser-driver-manager install chromedriver --verbose
- <<: *restore_build
Expand All @@ -133,7 +140,7 @@ jobs:
<<: *unix_box
steps:
- checkout
- browser-tools/install-browser-tools
- browser-tools-job
- <<: *restore_dependency_cache_unix
- run: npx browser-driver-manager install chromedriver --verbose
- <<: *restore_build
Expand All @@ -145,7 +152,7 @@ jobs:
<<: *unix_box
steps:
- checkout
- browser-tools/install-browser-tools
- browser-tools-job
- <<: *restore_dependency_cache_unix
- run: npx browser-driver-manager install chromedriver --verbose
- <<: *restore_build
Expand All @@ -157,7 +164,7 @@ jobs:
<<: *unix_box
steps:
- checkout
- browser-tools/install-browser-tools
- browser-tools-job
- <<: *restore_dependency_cache_unix
- run: npx browser-driver-manager install chromedriver --verbose
- <<: *restore_build
Expand Down Expand Up @@ -192,7 +199,7 @@ jobs:
steps:
- checkout
- <<: *restore_dependency_cache_unix
- browser-tools/install-browser-tools
- browser-tools-job
# install ACT rules
# install first as for some reason installing a single package
# also re-installs all repo dependencies as well
Expand All @@ -208,7 +215,7 @@ jobs:
steps:
- checkout
- <<: *restore_dependency_cache_unix
- browser-tools/install-browser-tools
- browser-tools-job
# install ARIA practices
# install first as for some reason installing a single package
# also re-installs all repo dependencies as well
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = {
'dot-notation': 2,
'no-new-func': 0,
'no-new-wrappers': 0,
'no-shadow': 2,
'no-restricted-syntax': [
'error',
{
Expand Down
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,51 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [4.8.0](https://github.com/dequelabs/axe-core/compare/v4.7.2...v4.8.0) (2023-09-06)

### Features

- add EN.301.549 tags to rules ([#4063](https://github.com/dequelabs/axe-core/issues/4063)) ([de3da89](https://github.com/dequelabs/axe-core/commit/de3da897e56179d94ef8a0dc1a667b5663c489d1))
- add rule aria-conditional-attr ([#4094](https://github.com/dequelabs/axe-core/issues/4094)) ([d417630](https://github.com/dequelabs/axe-core/commit/d417630e89a41603426c2bb545b49057f03ed8e5))
- add rule aria-deprecated-role ([#4074](https://github.com/dequelabs/axe-core/issues/4074)) ([03f2771](https://github.com/dequelabs/axe-core/commit/03f2771ab43bd877b7919c29b4f5e737b5a69544))
- **aria-input/toggle-field-name:** set impact always to serious ([#4095](https://github.com/dequelabs/axe-core/issues/4095)) ([e031d68](https://github.com/dequelabs/axe-core/commit/e031d68652229a80ba6ff7d02d29a50a846bfa5b))
- **aria-prohibited-attr:** add rule aria-prohibited-attr ([#4088](https://github.com/dequelabs/axe-core/issues/4088)) ([7b115d3](https://github.com/dequelabs/axe-core/commit/7b115d3a9e7256ae2c0a1d7d0f9ba791a06c8599))
- **checks:** enable help-same-as-label, but remove from rules ([#4096](https://github.com/dequelabs/axe-core/issues/4096)) ([034038a](https://github.com/dequelabs/axe-core/commit/034038a625b390ed25b30fccc96e3fc1f384dbc1))
- **d.ts:** improve axe.d.ts types ([#4081](https://github.com/dequelabs/axe-core/issues/4081)) ([7c5f991](https://github.com/dequelabs/axe-core/commit/7c5f99143a1d97e294d21e14917f4963013fc6f8)), closes [#3966](https://github.com/dequelabs/axe-core/issues/3966)
- deprecate & disable duplicate-id / duplicate-id-active ([#4071](https://github.com/dequelabs/axe-core/issues/4071)) ([733c45e](https://github.com/dequelabs/axe-core/commit/733c45e6a40a9f8ff6e75f7db864edff0b404ca2))
- Deprecate impact on checks, use rules instead ([#4114](https://github.com/dequelabs/axe-core/issues/4114)) ([2cc5547](https://github.com/dequelabs/axe-core/commit/2cc5547634ee783701675631ee3978129707e6f0))
- **duplicate-id-aria:** set to review on fail and tag as wcag412 ([#4075](https://github.com/dequelabs/axe-core/issues/4075)) ([9f1a3e3](https://github.com/dequelabs/axe-core/commit/9f1a3e3cbffbe09eaf90fa254c6421fd4264cf4a))
- **impact:** aria-roles / aria-valid-attr-value is always "critical" ([#4112](https://github.com/dequelabs/axe-core/issues/4112)) ([5cc8041](https://github.com/dequelabs/axe-core/commit/5cc8041f74a6f015dcbca36ee7414767528277c2))
- **impact:** scope-attr-valid is always "moderate" ([#4113](https://github.com/dequelabs/axe-core/issues/4113)) ([131f552](https://github.com/dequelabs/axe-core/commit/131f5524e8c8022ace047ac6d69d779460c85fe6))
- **new-rule:** aria-braille-equivalent finds incorrect uses of aria-braille attributes ([#4107](https://github.com/dequelabs/axe-core/issues/4107)) ([6260a2f](https://github.com/dequelabs/axe-core/commit/6260a2f25781b465960aec0b1e7781be5496c9bd))
- **page-no-duplicate-banner/contentinfo:** deprecate options.nativeScopeFilter, take into ancestors with sectioning roles ([#4105](https://github.com/dequelabs/axe-core/issues/4105)) ([c6e07be](https://github.com/dequelabs/axe-core/commit/c6e07bec43ef1935f2afb9429e9f12a937c38f14))

### Bug Fixes

- **access-name:** get name from header elements ([#4097](https://github.com/dequelabs/axe-core/issues/4097)) ([fbe99bf](https://github.com/dequelabs/axe-core/commit/fbe99bf87a3ebd7d6bc4b4eca7a58bbff28a5b23))
- add <search> element semantics ([#4115](https://github.com/dequelabs/axe-core/issues/4115)) ([637bf6c](https://github.com/dequelabs/axe-core/commit/637bf6c58c3e62877511687d8a6046f8aee63f03))
- **aria-allowed-attr:** pass aria-expanded on checkbox & switch ([#4110](https://github.com/dequelabs/axe-core/issues/4110)) ([fcf76e0](https://github.com/dequelabs/axe-core/commit/fcf76e04d8534dfed75caf1f2c4a74ef4faa29ae)), closes [#3339](https://github.com/dequelabs/axe-core/issues/3339)
- **aria-allowed-role:** Add doc-glossary to allowed roles for aside element ([#4083](https://github.com/dequelabs/axe-core/issues/4083)) ([6ca38f6](https://github.com/dequelabs/axe-core/commit/6ca38f65c28e9df0c429df1018b519394e22507e))
- **aria-allowed-role:** add meter to allowed roles for named img ([#4055](https://github.com/dequelabs/axe-core/issues/4055)) ([173f29d](https://github.com/dequelabs/axe-core/commit/173f29da9558a1fd0510609aacc9e4deebdf74b4)), closes [#4054](https://github.com/dequelabs/axe-core/issues/4054)
- **aria-required-childen:** test visibility of grandchildren ([#4091](https://github.com/dequelabs/axe-core/issues/4091)) ([a202b69](https://github.com/dequelabs/axe-core/commit/a202b69b955b45fc10abe06059925013bede07eb))
- **aria-text:** typo in rule description ([#4131](https://github.com/dequelabs/axe-core/issues/4131)) ([85a0e9c](https://github.com/dequelabs/axe-core/commit/85a0e9c358ae78b4ceb2093dc9891d523eaf25b2))
- **aria-valid-attr-value:** allow empty value on aria-braille\* & aria-valuetext ([#4109](https://github.com/dequelabs/axe-core/issues/4109)) ([c4c3e65](https://github.com/dequelabs/axe-core/commit/c4c3e658408d89b5ccd747d5fad9031c5d3a0de0))
- avoid memory issues by doing better cleanup ([#4059](https://github.com/dequelabs/axe-core/issues/4059)) ([16c5cfa](https://github.com/dequelabs/axe-core/commit/16c5cfa66615537b2131a5a381fbed9a5336d853))
- avoid problems from element IDs that exist on object prototype ([#4060](https://github.com/dequelabs/axe-core/issues/4060)) ([8d135dd](https://github.com/dequelabs/axe-core/commit/8d135dd58ccd72393b981464f66a01e770d9cf95))
- **color-contrast:** correctly handle flex and position ([#4086](https://github.com/dequelabs/axe-core/issues/4086)) ([9d5f496](https://github.com/dequelabs/axe-core/commit/9d5f496c4ee7e95d113cdceab284fb6ca7be98e3))
- **color-contrast:** get text stoke from offset shadows ([#4079](https://github.com/dequelabs/axe-core/issues/4079)) ([13acffe](https://github.com/dequelabs/axe-core/commit/13acffe540f834f5321f9c5c124b565cec92ce06))
- **color-contrast:** ignore format unicode characters ([#4102](https://github.com/dequelabs/axe-core/issues/4102)) ([049522e](https://github.com/dequelabs/axe-core/commit/049522e3ef0676b198763e39e8c8a300c8eeb195))
- **color-contrast:** ignore zero width characters ([#4103](https://github.com/dequelabs/axe-core/issues/4103)) ([4deb0a0](https://github.com/dequelabs/axe-core/commit/4deb0a0876d574c3d7d586b27ae07d4f5be586db))
- **color-contrast:** process non-rgb color functions ([#4092](https://github.com/dequelabs/axe-core/issues/4092)) ([9634282](https://github.com/dequelabs/axe-core/commit/963428256d7a119c7b6188868eb9d4a4651a8949))
- **commons/dom/createGrid:** only add the visible, non-overflow areas of an element to the grid ([#4101](https://github.com/dequelabs/axe-core/issues/4101)) ([d77f47b](https://github.com/dequelabs/axe-core/commit/d77f47b8dd346e205b6cddb4f6ce544ef5f699e4))
- ensure reporter errors can propagate ([#4111](https://github.com/dequelabs/axe-core/issues/4111)) ([080cc1b](https://github.com/dequelabs/axe-core/commit/080cc1b5f5ed048ab435c312dec291d1b4eb4393))
- ignore stylesheets fetching style tag in jsdom ([#4138](https://github.com/dequelabs/axe-core/issues/4138)) ([d7c16a4](https://github.com/dequelabs/axe-core/commit/d7c16a481d5a5f68c1e970040e01f125b2025378))
- **jsdom:** allow axe.setup() without a global window ([#4116](https://github.com/dequelabs/axe-core/issues/4116)) ([33b0314](https://github.com/dequelabs/axe-core/commit/33b0314922762c0e562b613219b5cc96e3ce31f5))
- **target-size:** correctly calculate bounding box ([#4125](https://github.com/dequelabs/axe-core/issues/4125)) ([1494b4c](https://github.com/dequelabs/axe-core/commit/1494b4c2159fbae2a937cc7c3dc1d269915ef4d4))
- **target-size:** update to match new spacing requirements ([#4117](https://github.com/dequelabs/axe-core/issues/4117)) ([49eaa0e](https://github.com/dequelabs/axe-core/commit/49eaa0e1663724f70b2571cc7393e306bf0c7321))
- Use correct copyright year ([#4098](https://github.com/dequelabs/axe-core/issues/4098)) ([cab6a2b](https://github.com/dequelabs/axe-core/commit/cab6a2b2f012f5963d0f4294217578c790508fcc))
- **utils/clone:** don't try to clone elements from different window context ([#4072](https://github.com/dequelabs/axe-core/issues/4072)) ([55000d0](https://github.com/dequelabs/axe-core/commit/55000d066f018e4c3f2b9ec4eabf23eb1781dfbb))

### [4.7.2](https://github.com/dequelabs/axe-core/compare/v4.7.1...v4.7.2) (2023-05-25)

### Bug Fixes
Expand Down
81 changes: 72 additions & 9 deletions axe.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ declare namespace axe {
interface NodeResult {
html: string;
impact?: ImpactValue;
target: string[];
target: UnlabelledFrameSelector;
xpath?: string[];
ancestry?: string[];
ancestry?: UnlabelledFrameSelector;
any: CheckResult[];
all: CheckResult[];
none: CheckResult[];
Expand All @@ -181,8 +181,11 @@ declare namespace axe {
relatedNodes?: RelatedNode[];
}
interface RelatedNode {
target: string[];
html: string;
target: UnlabelledFrameSelector;
xpath?: string[];
ancestry?: UnlabelledFrameSelector;
element?: HTMLElement;
}
interface RuleLocale {
[key: string]: {
Expand All @@ -193,7 +196,7 @@ declare namespace axe {
interface CheckMessages {
pass: string | { [key: string]: string };
fail: string | { [key: string]: string };
incomplete: string | { [key: string]: string };
incomplete?: string | { [key: string]: string };
}
interface CheckLocale {
[key: string]: CheckMessages;
Expand Down Expand Up @@ -257,10 +260,31 @@ declare namespace axe {
brand?: string;
application?: string;
}
interface CheckHelper {
async: () => (result: boolean | undefined | Error) => void;
data: (data: unknown) => void;
relatedNodes: (nodes: Element[]) => void;
}
interface AfterResult {
id: string;
data?: unknown;
relatedNodes: SerialDqElement[];
result: boolean | undefined;
node: SerialDqElement;
}
interface Check {
id: string;
evaluate?: Function | string;
after?: Function | string;
evaluate?:
| string
| ((
this: CheckHelper,
node: Element,
options: unknown,
virtualNode: VirtualNode
) => boolean | undefined | void);
after?:
| string
| ((results: AfterResult[], options: unknown) => AfterResult[]);
options?: any;
matches?: string;
enabled?: boolean;
Expand All @@ -280,9 +304,10 @@ declare namespace axe {
all?: string[];
none?: string[];
tags?: string[];
matches?: string;
matches?: string | ((node: Element, virtualNode: VirtualNode) => boolean);
reviewOnFail?: boolean;
metadata?: Omit<RuleMetadata, 'ruleId'>;
actIds?: string[];
metadata?: Omit<RuleMetadata, 'ruleId' | 'tags' | 'actIds'>;
}
interface AxePlugin {
id: string;
Expand Down Expand Up @@ -346,7 +371,8 @@ declare namespace axe {
type AxeReporter<T = unknown> = (
rawResults: RawResult[],
option: RunOptions,
callback: (report: T) => void
resolve: (report: T) => void,
reject: (error: Error) => void
) => void;

interface VirtualNode {
Expand All @@ -367,6 +393,42 @@ declare namespace axe {
shadowSelect: (selector: CrossTreeSelector) => Element | null;
shadowSelectAll: (selector: CrossTreeSelector) => Element[];
getStandards(): Required<Standards>;
DqElement: new (
elm: Element,
options?: { absolutePaths?: boolean }
) => SerialDqElement;
uuid: (
options?: { random?: Uint8Array | Array<number> },
buf?: Uint8Array | Array<number>,
offset?: number
) => string | Uint8Array | Array<number>;
}

interface Aria {
getRoleType: (role: string | Element | VirtualNode | null) => string | null;
}

interface Dom {
isFocusable: (node: Element | VirtualNode) => boolean;
isNativelyFocusable: (node: Element | VirtualNode) => boolean;
}

type AccessibleTextOptions = {
inControlContext?: boolean;
inLabelledByContext?: boolean;
};

interface Text {
accessibleText: (
element: Element,
options?: AccessibleTextOptions
) => string;
}

interface Commons {
aria: Aria;
dom: Dom;
text: Text;
}

interface EnvironmentData {
Expand All @@ -380,6 +442,7 @@ declare namespace axe {
let version: string;
let plugins: any;
let utils: Utils;
let commons: Commons;

/**
* Source string to use as an injected script in Selenium
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "axe-core",
"version": "4.7.2",
"version": "4.8.0",
"deprecated": true,
"contributors": [
{
Expand Down
Loading