axe-core 4.0.2-canary.fcdbdbc → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -51
- package/README.md +3 -0
- package/axe.js +23981 -21658
- package/axe.min.js +2 -2
- package/bower.json +2 -8
- package/doc/API.md +4 -4
- package/doc/accessibility-supported.md +1 -5
- package/doc/check-options.md +0 -7
- package/doc/projects.md +0 -1
- package/doc/rule-descriptions.md +92 -99
- package/lib/checks/aria/abstractrole-evaluate.js +1 -24
- package/lib/checks/aria/aria-allowed-attr-evaluate.js +0 -24
- package/lib/checks/aria/aria-allowed-role-evaluate.js +0 -11
- package/lib/checks/aria/aria-errormessage-evaluate.js +4 -26
- package/lib/checks/aria/aria-errormessage.json +1 -5
- package/lib/checks/aria/aria-hidden-body-evaluate.js +0 -6
- package/lib/checks/aria/aria-required-attr-evaluate.js +0 -24
- package/lib/checks/aria/aria-required-children-evaluate.js +0 -10
- package/lib/checks/aria/aria-required-parent-evaluate.js +0 -24
- package/lib/checks/aria/aria-roledescription-evaluate.js +0 -7
- package/lib/checks/aria/aria-unsupported-attr-evaluate.js +0 -24
- package/lib/checks/aria/aria-valid-attr-evaluate.js +0 -24
- package/lib/checks/aria/aria-valid-attr-value-evaluate.js +0 -24
- package/lib/checks/aria/fallbackrole-evaluate.js +0 -6
- package/lib/checks/aria/has-widget-role-evaluate.js +0 -8
- package/lib/checks/aria/invalidrole-evaluate.js +0 -24
- package/lib/checks/aria/no-implicit-explicit-label-evaluate.js +0 -22
- package/lib/checks/aria/unsupportedrole-evaluate.js +0 -8
- package/lib/checks/aria/valid-scrollable-semantics-evaluate.js +2 -4
- package/lib/checks/color/color-contrast-evaluate.js +1 -37
- package/lib/checks/color/color-contrast.json +1 -2
- package/lib/checks/forms/autocomplete-appropriate-evaluate.js +2 -4
- package/lib/checks/generic/attr-non-space-content-evaluate.js +1 -15
- package/lib/checks/label/explicit-evaluate.js +8 -10
- package/lib/checks/language/valid-lang-evaluate.js +4 -5
- package/lib/checks/navigation/region.json +0 -3
- package/lib/checks/shared/non-empty-alt.json +1 -4
- package/lib/checks/shared/non-empty-title.json +1 -4
- package/lib/checks/shared/non-empty-value.json +1 -4
- package/lib/checks/shared/role-none.json +0 -1
- package/lib/checks/shared/role-presentation.json +0 -1
- package/lib/commons/aria/get-role.js +10 -30
- package/lib/commons/intro.stub +1 -0
- package/lib/commons/outro.stub +2 -0
- package/lib/commons/standards/implicit-html-roles.js +1 -1
- package/lib/commons/table/get-headers.js +2 -12
- package/lib/commons/text/native-text-methods.js +3 -18
- package/lib/core/base/audit.js +3 -3
- package/lib/core/base/metadata-function-map.js +2 -12
- package/lib/core/base/rule.js +0 -5
- package/lib/core/imports/index.js +0 -1
- package/lib/core/utils/css-parser.js +1 -1
- package/lib/core/utils/get-scroll-state.js +0 -1
- package/lib/core/utils/index.js +1 -1
- package/lib/core/utils/merge-results.js +0 -22
- package/lib/core/utils/parse-crossorigin-stylesheet.js +11 -17
- package/lib/core/utils/set-scroll-state.js +0 -1
- package/lib/core/utils/valid-langs.js +8144 -96
- package/lib/rules/accesskeys.json +1 -1
- package/lib/rules/aria-form-field-name-matches.js +55 -0
- package/lib/rules/aria-hidden-body.json +0 -1
- package/lib/rules/aria-input-field-name.json +2 -2
- package/lib/rules/aria-toggle-field-name.json +3 -3
- package/lib/rules/avoid-inline-spacing.json +1 -1
- package/lib/rules/button-name.json +3 -2
- package/lib/rules/bypass-matches.js +3 -3
- package/lib/rules/document-title.json +1 -1
- package/lib/rules/frame-title.json +2 -1
- package/lib/rules/html-has-lang.json +1 -1
- package/lib/rules/identical-links-same-purpose.json +1 -1
- package/lib/rules/image-alt.json +2 -1
- package/lib/rules/input-button-name.json +2 -1
- package/lib/rules/label-content-name-mismatch.json +1 -1
- package/lib/rules/label.json +3 -3
- package/lib/rules/link-name.json +3 -1
- package/lib/rules/no-autoplay-audio.json +1 -1
- package/lib/rules/object-alt.json +3 -1
- package/lib/rules/scrollable-region-focusable-matches.js +1 -41
- package/lib/rules/scrollable-region-focusable.json +1 -1
- package/lib/rules/window-is-top-matches.js +0 -1
- package/lib/rules/xml-lang-mismatch-matches.js +5 -2
- package/lib/standards/aria-roles.js +56 -200
- package/lib/standards/dpub-roles.js +39 -78
- package/lib/standards/html-elms.js +7 -13
- package/package.json +5 -6
- package/sri-history.json +1 -5
- package/lib/checks/aria/has-global-aria-attribute-evaluate.js +0 -11
- package/lib/checks/aria/has-global-aria-attribute.json +0 -14
- package/lib/checks/aria/is-element-focusable-evaluate.js +0 -7
- package/lib/checks/aria/is-element-focusable.json +0 -11
- package/lib/checks/index.js +0 -11
- package/lib/checks/shared/non-empty-placeholder.json +0 -17
- package/lib/checks/shared/presentational-role-evaluate.js +0 -42
- package/lib/checks/shared/presentational-role.json +0 -16
- package/lib/rules/aria-command-name.json +0 -18
- package/lib/rules/aria-dialog-name.json +0 -13
- package/lib/rules/aria-meter-name.json +0 -13
- package/lib/rules/aria-progressbar-name.json +0 -13
- package/lib/rules/aria-tooltip-name.json +0 -18
- package/lib/rules/is-initiator-matches.js +0 -5
- package/lib/rules/no-naming-method-matches.js +0 -24
- package/lib/rules/presentation-role-conflict.json +0 -12
- package/lib/rules/select-name.json +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -2,57 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
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
4
|
|
|
5
|
-
### [4.0.2-canary.fcdbdbc](https://github.com/dequelabs/axe-core/compare/v4.0.2...v4.0.2-canary.fcdbdbc) (2020-11-02)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* **aria-toggle-field-name:** add option role ([#2605](https://github.com/dequelabs/axe-core/issues/2605)) ([0af0551](https://github.com/dequelabs/axe-core/commit/0af0551e57c2b8347eeb9ce6550056c1888b5f4a))
|
|
11
|
-
* **get-role:** add noPresentational option ([#2549](https://github.com/dequelabs/axe-core/issues/2549)) ([4f39299](https://github.com/dequelabs/axe-core/commit/4f39299805d6e2c0fd09a1952d08c44800ca5dfc)), closes [#1792](https://github.com/dequelabs/axe-core/issues/1792)
|
|
12
|
-
* **imports:** deprecate axios ([#2542](https://github.com/dequelabs/axe-core/issues/2542)) ([82d43a0](https://github.com/dequelabs/axe-core/commit/82d43a0593a8dc9733b97138f8e6f934ed25dea2))
|
|
13
|
-
* **new-rule:** ARIA links, buttons, menuitems have an accessible name ([#2571](https://github.com/dequelabs/axe-core/issues/2571)) ([9476a1f](https://github.com/dequelabs/axe-core/commit/9476a1f5170bbc85b683c6524f44f49c1835054a))
|
|
14
|
-
* **new-rule:** aria-tooltip-name ([#2548](https://github.com/dequelabs/axe-core/issues/2548)) ([d00f378](https://github.com/dequelabs/axe-core/commit/d00f3781fb5c9c7c7f88e6790de3741788e8ddd9))
|
|
15
|
-
* **new-rule:** check that meter role has an accessible name ([#2607](https://github.com/dequelabs/axe-core/issues/2607)) ([3ca2f04](https://github.com/dequelabs/axe-core/commit/3ca2f04b0f737914dda667c26f0193b7b312e6f6))
|
|
16
|
-
* **new-rule:** check that progressbars have an accessible name ([#2555](https://github.com/dequelabs/axe-core/issues/2555)) ([dd0b44a](https://github.com/dequelabs/axe-core/commit/dd0b44ad8aeed9e4b7b45478c62c655a6cbf10ed))
|
|
17
|
-
* **presentation-role-conflict:** create rule to flag elements with role conflict resolution ([#2440](https://github.com/dequelabs/axe-core/issues/2440)) ([e4edffc](https://github.com/dequelabs/axe-core/commit/e4edffc09f2305d8b4e69af266759cf32a5326f4))
|
|
18
|
-
* **rule-matches:** depreacte window-is-top-matches for is-intiator-matches ([#2531](https://github.com/dequelabs/axe-core/issues/2531)) ([db2be93](https://github.com/dequelabs/axe-core/commit/db2be93d07dda488f9d5ca66d193709eb41bf8cd))
|
|
19
|
-
* **standards:** add superclassRole to ariaRoles ([#2600](https://github.com/dequelabs/axe-core/issues/2600)) ([a5e9ce0](https://github.com/dequelabs/axe-core/commit/a5e9ce03befdc8f914f72a4eb1e49a95d6a2aa91))
|
|
20
|
-
* **standards:** add superclassRole to dpubRoles ([#2606](https://github.com/dequelabs/axe-core/issues/2606)) ([1b66930](https://github.com/dequelabs/axe-core/commit/1b6693092d44aa10b9d4fd093baff674a17a2d30))
|
|
21
|
-
* **utils:** deprecate get/set-scroll-state ([#2581](https://github.com/dequelabs/axe-core/issues/2581)) ([3c4827f](https://github.com/dequelabs/axe-core/commit/3c4827f7e3fdab4851697111bbe7cab55539bfbd))
|
|
22
|
-
* **valid-langs:** deprecate validLangs, add isValidLangs, reduce file size ([#2527](https://github.com/dequelabs/axe-core/issues/2527)) ([8a699ec](https://github.com/dequelabs/axe-core/commit/8a699ecba6c77f6a705d44616f1bcefd634ff89b))
|
|
23
|
-
* Add aria-dialog-name ([#2609](https://github.com/dequelabs/axe-core/issues/2609)) ([b0e14b0](https://github.com/dequelabs/axe-core/commit/b0e14b0bc1df221ef379bf7ea830d3ceb030787a))
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### Bug Fixes
|
|
27
|
-
|
|
28
|
-
* **aria-errormessage:** allow aria-live="polite" on aria-errormessage target ([926b6a8](https://github.com/dequelabs/axe-core/commit/926b6a8fe7aad0444d9bc97f2e6c8564023ab58f))
|
|
29
|
-
* **aria-errormessage:** allow aria-live=polite on aria-errormessage target ([#2597](https://github.com/dequelabs/axe-core/issues/2597)) ([0d5cfb1](https://github.com/dequelabs/axe-core/commit/0d5cfb15941cc23d2b5065c203e9ccdc01c57b82))
|
|
30
|
-
* **aria-roles:** add group to menuitemradio context ([#2518](https://github.com/dequelabs/axe-core/issues/2518)) ([52b89f1](https://github.com/dequelabs/axe-core/commit/52b89f1ca67b2c04b8e96495cd6fe601e5c3eb54))
|
|
31
|
-
* **aria-roles:** Add WAI-ARIA 1.2 roles ([#2544](https://github.com/dequelabs/axe-core/issues/2544)) ([635b084](https://github.com/dequelabs/axe-core/commit/635b084c5460a3328118ec4f5db678deb082966b)), closes [#2107](https://github.com/dequelabs/axe-core/issues/2107) [#2107](https://github.com/dequelabs/axe-core/issues/2107) [#2107](https://github.com/dequelabs/axe-core/issues/2107) [#2107](https://github.com/dequelabs/axe-core/issues/2107)
|
|
32
|
-
* **audit:** updated axe.reset() to reset branding, application, and tagExcludes. ([#2537](https://github.com/dequelabs/axe-core/issues/2537)) ([828864b](https://github.com/dequelabs/axe-core/commit/828864bd9c32a6866e0e0dc6d7b263668a01497e))
|
|
33
|
-
* **autocomplete-valid:** allow type=tel for appropriate cc types ([#2575](https://github.com/dequelabs/axe-core/issues/2575)) ([ae21713](https://github.com/dequelabs/axe-core/commit/ae2171364bee2fe1912a9da427525be4fa99a1db))
|
|
34
|
-
* **checks/aria:** Mark elements missing from aria-errormessage for review ([#2550](https://github.com/dequelabs/axe-core/issues/2550)) ([8f9a035](https://github.com/dequelabs/axe-core/commit/8f9a035dca4aaa6f9fe20766d5a6f58ec1c4039c)), closes [#2460](https://github.com/dequelabs/axe-core/issues/2460)
|
|
35
|
-
* **color-contrast:** dont error for floating element ([#2444](https://github.com/dequelabs/axe-core/issues/2444)) ([45eb746](https://github.com/dequelabs/axe-core/commit/45eb74682c8460fbd6f1de273e710b597ff01392))
|
|
36
|
-
* do not allow fallback content for objects ([#2525](https://github.com/dequelabs/axe-core/issues/2525)) ([486eafe](https://github.com/dequelabs/axe-core/commit/486eafe72ca8e1b47edd53c0142aaab415b2d2d5))
|
|
37
|
-
* **color-contrast:** mark elements with pseudo content as needs review ([#2613](https://github.com/dequelabs/axe-core/issues/2613)) ([fcdbdbc](https://github.com/dequelabs/axe-core/commit/fcdbdbc4d7324c952d08f69607870461f707c29b))
|
|
38
|
-
* **docs/rules:** add missing category tags to rules metadata ([#2569](https://github.com/dequelabs/axe-core/issues/2569)) ([285c442](https://github.com/dequelabs/axe-core/commit/285c442152d8a80dd13edb9ac064ac5030199524)), closes [#2554](https://github.com/dequelabs/axe-core/issues/2554)
|
|
39
|
-
* **explicit-label:** work with multiple labels ([#2573](https://github.com/dequelabs/axe-core/issues/2573)) ([d26f106](https://github.com/dequelabs/axe-core/commit/d26f10699d099c8a4f2aacf180862890d8dbbe18))
|
|
40
|
-
* **get-headers:** fix for rowspan and colspan ([#2545](https://github.com/dequelabs/axe-core/issues/2545)) ([3f02d14](https://github.com/dequelabs/axe-core/commit/3f02d14cbe3562e22762664843f8852f779be2a3))
|
|
41
|
-
* **heading-order:** evaluate headings from iframes in DOM order ([#2572](https://github.com/dequelabs/axe-core/issues/2572)) ([46f6628](https://github.com/dequelabs/axe-core/commit/46f6628cc710b9aaa8b872790a0b8c42032a8134))
|
|
42
|
-
* **i18n:** proofreading of the french translations ([#2485](https://github.com/dequelabs/axe-core/issues/2485)) ([ebd0407](https://github.com/dequelabs/axe-core/commit/ebd04074f556b1927c9302e3f999e4c1cbc2de9e)), closes [#2484](https://github.com/dequelabs/axe-core/issues/2484)
|
|
43
|
-
* **implicit-role:** return gridcell for td child of grid or treegrid ([#2501](https://github.com/dequelabs/axe-core/issues/2501)) ([0553d4d](https://github.com/dequelabs/axe-core/commit/0553d4d67d59127cd67420022cd7696dea167a6a))
|
|
44
|
-
* **implilcit-role:** use type property instead of attribute to resolve input role ([#2547](https://github.com/dequelabs/axe-core/issues/2547)) ([35e853d](https://github.com/dequelabs/axe-core/commit/35e853d91e1067b9156dfb6e89da0c7445baa86f)), closes [#2514](https://github.com/dequelabs/axe-core/issues/2514)
|
|
45
|
-
* **label:** pass when role none or presentation ([#2464](https://github.com/dequelabs/axe-core/issues/2464)) ([1d3c2fc](https://github.com/dequelabs/axe-core/commit/1d3c2fc28355c8476d3966d73664a2a1f4c6124d)), closes [#2458](https://github.com/dequelabs/axe-core/issues/2458)
|
|
46
|
-
* **link-name:** fix regression where link was not named from title attribute ([#2492](https://github.com/dequelabs/axe-core/issues/2492)) ([b86c73b](https://github.com/dequelabs/axe-core/commit/b86c73b7dc61c2609afa6f384502f3c91f9a7f10))
|
|
47
|
-
* **region:** allow role=dialog and svg elements outside regions ([#2586](https://github.com/dequelabs/axe-core/issues/2586)) ([fab58d4](https://github.com/dequelabs/axe-core/commit/fab58d4bf60a4d7b1c935b31384eecd0c57f92f5))
|
|
48
|
-
* **region:** treat iframes as regions ([#2614](https://github.com/dequelabs/axe-core/issues/2614)) ([936db81](https://github.com/dequelabs/axe-core/commit/936db8105b7bfa1323568ab572a1e4b0428b4566))
|
|
49
|
-
* **required-parent:** fail if intermediate role is not the required parent ([#2494](https://github.com/dequelabs/axe-core/issues/2494)) ([522865c](https://github.com/dequelabs/axe-core/commit/522865cabbe1f4815b1f3e980018e24c062c8e5e))
|
|
50
|
-
* **rule:** add check node to the check result object ([#2608](https://github.com/dequelabs/axe-core/issues/2608)) ([b188911](https://github.com/dequelabs/axe-core/commit/b188911613812a9aaaa95fb86606f842ee39b11a))
|
|
51
|
-
* deprecate aria-form-field-name-matches for no-name-method-matches ([#2584](https://github.com/dequelabs/axe-core/issues/2584)) ([8be89e3](https://github.com/dequelabs/axe-core/commit/8be89e39883e5c421da06b1343c810502ac6e9a7))
|
|
52
|
-
* **scrollable-region-focusalbe:** do not fail for combobox pattern ([#2601](https://github.com/dequelabs/axe-core/issues/2601)) ([ac71a57](https://github.com/dequelabs/axe-core/commit/ac71a574f0285eceb11960416902169f7dce030d))
|
|
53
|
-
* **svg-non-empty-title:** update fail message to indicate if the title element is empty or missing ([#2462](https://github.com/dequelabs/axe-core/issues/2462)) ([9598656](https://github.com/dequelabs/axe-core/commit/9598656bfac61da35f8b9f52e1fb32fcab6b484e)), closes [#2452](https://github.com/dequelabs/axe-core/issues/2452)
|
|
54
|
-
* **valid-lang:** fail when lang attribute contains only whitespace ([#2504](https://github.com/dequelabs/axe-core/issues/2504)) ([8455a7f](https://github.com/dequelabs/axe-core/commit/8455a7f3a1aa83f487745306df0c07c39b6dc803))
|
|
55
|
-
|
|
56
5
|
### [4.0.2](https://github.com/dequelabs/axe-core/compare/v4.0.1...v4.0.2) (2020-09-08)
|
|
57
6
|
|
|
58
7
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
# axe-core
|
|
2
|
+
|
|
3
|
+
[](https://circleci.com/gh/dequelabs/axe-core)
|
|
4
|
+
|
|
2
5
|
[](LICENSE)
|
|
3
6
|
[](https://www.npmjs.com/package/axe-core)
|
|
4
7
|
[](https://www.npmjs.com/package/axe-core)
|