axe-core 3.5.4-canary.e9dd259 → 3.5.4
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 -47
- package/axe.d.ts +1 -5
- package/axe.js +21991 -23735
- package/axe.min.js +2 -2
- package/bower.json +2 -8
- package/doc/API.md +11 -11
- package/doc/projects.md +0 -1
- package/doc/rule-descriptions.md +99 -93
- package/lib/checks/aria/abstractrole.js +10 -0
- package/lib/checks/aria/abstractrole.json +1 -1
- package/lib/checks/aria/allowed-attr.js +39 -0
- package/lib/checks/aria/{aria-allowed-attr.json → allowed-attr.json} +1 -1
- package/lib/checks/aria/aria-allowed-role.js +28 -0
- package/lib/checks/aria/aria-allowed-role.json +1 -1
- package/lib/checks/aria/aria-hidden-body.js +1 -0
- package/lib/checks/aria/aria-hidden-body.json +1 -1
- package/lib/checks/aria/aria-roledescription.js +14 -0
- package/lib/checks/aria/aria-roledescription.json +1 -1
- package/lib/checks/aria/errormessage.js +33 -0
- package/lib/checks/aria/{aria-errormessage.json → errormessage.json} +1 -1
- package/lib/checks/aria/fallbackrole.js +1 -0
- package/lib/checks/aria/fallbackrole.json +1 -1
- package/lib/checks/aria/has-widget-role.js +6 -0
- package/lib/checks/aria/has-widget-role.json +1 -1
- package/lib/checks/aria/implicit-role-fallback.js +6 -0
- package/lib/checks/aria/implicit-role-fallback.json +12 -0
- package/lib/checks/aria/invalidrole.js +17 -0
- package/lib/checks/aria/invalidrole.json +1 -1
- package/lib/checks/aria/no-implicit-explicit-label.js +21 -0
- package/lib/checks/aria/no-implicit-explicit-label.json +1 -1
- package/lib/checks/aria/required-attr.js +53 -0
- package/lib/checks/aria/{aria-required-attr.json → required-attr.json} +1 -1
- package/lib/checks/aria/required-children.js +154 -0
- package/lib/checks/aria/{aria-required-children.json → required-children.json} +1 -1
- package/lib/checks/aria/required-parent.js +87 -0
- package/lib/checks/aria/{aria-required-parent.json → required-parent.json} +1 -1
- package/lib/checks/aria/unsupportedattr.js +39 -0
- package/lib/checks/aria/{aria-unsupported-attr.json → unsupportedattr.json} +1 -1
- package/lib/checks/aria/unsupportedrole.js +1 -0
- package/lib/checks/aria/unsupportedrole.json +1 -1
- package/lib/checks/aria/valid-attr-value.js +80 -0
- package/lib/checks/aria/{aria-valid-attr-value.json → valid-attr-value.json} +1 -1
- package/lib/checks/aria/valid-attr.js +25 -0
- package/lib/checks/aria/{aria-valid-attr.json → valid-attr.json} +1 -1
- package/lib/checks/aria/{valid-scrollable-semantics-evaluate.js → valid-scrollable-semantics.js} +2 -2
- package/lib/checks/aria/valid-scrollable-semantics.json +1 -1
- package/lib/checks/color/color-contrast.js +86 -0
- package/lib/checks/color/color-contrast.json +1 -1
- package/lib/checks/color/link-in-text-block.js +85 -0
- package/lib/checks/color/link-in-text-block.json +1 -1
- package/lib/checks/forms/autocomplete-appropriate.js +67 -0
- package/lib/checks/forms/autocomplete-appropriate.json +1 -1
- package/lib/checks/forms/autocomplete-valid.js +2 -0
- package/lib/checks/forms/autocomplete-valid.json +1 -1
- package/lib/checks/forms/fieldset-after.js +25 -0
- package/lib/checks/forms/fieldset.js +109 -0
- package/lib/checks/forms/fieldset.json +20 -0
- package/lib/checks/forms/group-labelledby-after.js +16 -0
- package/lib/checks/forms/group-labelledby.js +66 -0
- package/lib/checks/forms/group-labelledby.json +17 -0
- package/lib/checks/keyboard/accesskeys-after.js +18 -22
- package/lib/checks/keyboard/accesskeys.js +5 -0
- package/lib/checks/keyboard/accesskeys.json +2 -2
- package/lib/checks/keyboard/focusable-content.js +16 -0
- package/lib/checks/keyboard/focusable-content.json +1 -1
- package/lib/checks/keyboard/focusable-disabled.js +30 -0
- package/lib/checks/keyboard/focusable-disabled.json +1 -1
- package/lib/checks/keyboard/focusable-element.js +12 -0
- package/lib/checks/keyboard/focusable-element.json +1 -1
- package/lib/checks/keyboard/focusable-modal-open.js +14 -0
- package/lib/checks/keyboard/focusable-modal-open.json +1 -1
- package/lib/checks/keyboard/focusable-no-name.js +6 -0
- package/lib/checks/keyboard/focusable-no-name.json +1 -1
- package/lib/checks/keyboard/focusable-not-tabbable.js +30 -0
- package/lib/checks/keyboard/focusable-not-tabbable.json +1 -1
- package/lib/checks/keyboard/landmark-is-top-level.js +18 -0
- package/lib/checks/keyboard/landmark-is-top-level.json +1 -1
- package/lib/checks/keyboard/page-has-elm-after.js +11 -0
- package/lib/checks/keyboard/page-has-elm.js +13 -0
- package/lib/checks/keyboard/page-has-heading-one.json +3 -3
- package/lib/checks/keyboard/page-has-main.json +2 -2
- package/lib/checks/keyboard/page-no-duplicate-after.js +2 -0
- package/lib/checks/keyboard/page-no-duplicate-banner.json +2 -2
- package/lib/checks/keyboard/page-no-duplicate-contentinfo.json +2 -2
- package/lib/checks/keyboard/page-no-duplicate-main.json +2 -2
- package/lib/checks/keyboard/page-no-duplicate.js +36 -0
- package/lib/checks/keyboard/tabindex.js +6 -0
- package/lib/checks/keyboard/tabindex.json +1 -1
- package/lib/checks/label/alt-space-value.js +3 -0
- package/lib/checks/label/alt-space-value.json +1 -1
- package/lib/checks/label/duplicate-img-label.js +22 -0
- package/lib/checks/label/duplicate-img-label.json +1 -4
- package/lib/checks/label/explicit.js +15 -0
- package/lib/checks/label/explicit.json +1 -1
- package/lib/checks/label/help-same-as-label.js +23 -0
- package/lib/checks/label/help-same-as-label.json +1 -1
- package/lib/checks/label/hidden-explicit-label.js +12 -0
- package/lib/checks/label/hidden-explicit-label.json +1 -1
- package/lib/checks/label/implicit.js +7 -0
- package/lib/checks/label/implicit.json +1 -1
- package/lib/checks/label/label-content-name-mismatch.js +59 -0
- package/lib/checks/label/label-content-name-mismatch.json +1 -1
- package/lib/checks/label/multiple-label.js +39 -0
- package/lib/checks/label/multiple-label.json +1 -1
- package/lib/checks/label/title-only.js +5 -0
- package/lib/checks/label/title-only.json +1 -1
- package/lib/checks/landmarks/landmark-is-unique-after.js +20 -24
- package/lib/checks/landmarks/landmark-is-unique.js +7 -0
- package/lib/checks/landmarks/landmark-is-unique.json +2 -2
- package/lib/checks/language/has-lang.js +20 -0
- package/lib/checks/language/has-lang.json +1 -4
- package/lib/checks/language/valid-lang.js +26 -0
- package/lib/checks/language/valid-lang.json +1 -4
- package/lib/checks/language/xml-lang-mismatch.js +5 -0
- package/lib/checks/language/xml-lang-mismatch.json +1 -1
- package/lib/checks/lists/dlitem.js +23 -0
- package/lib/checks/lists/dlitem.json +1 -1
- package/lib/checks/lists/listitem.js +21 -0
- package/lib/checks/lists/listitem.json +1 -1
- package/lib/checks/lists/only-dlitems.js +42 -0
- package/lib/checks/lists/only-dlitems.json +1 -1
- package/lib/checks/lists/only-listitems.js +58 -0
- package/lib/checks/lists/only-listitems.json +1 -1
- package/lib/checks/lists/structured-dlitems.js +22 -0
- package/lib/checks/lists/structured-dlitems.json +1 -1
- package/lib/checks/media/caption.js +8 -0
- package/lib/checks/media/caption.json +1 -1
- package/lib/checks/media/description.js +8 -0
- package/lib/checks/media/description.json +11 -0
- package/lib/checks/media/frame-tested.js +28 -0
- package/lib/checks/media/frame-tested.json +1 -1
- package/lib/checks/media/no-autoplay-audio.js +93 -0
- package/lib/checks/media/no-autoplay-audio.json +1 -1
- package/lib/checks/mobile/css-orientation-lock.js +251 -0
- package/lib/checks/mobile/css-orientation-lock.json +1 -1
- package/lib/checks/mobile/meta-viewport-large.json +1 -1
- package/lib/checks/mobile/meta-viewport-scale.js +52 -0
- package/lib/checks/mobile/meta-viewport.json +1 -1
- package/lib/checks/navigation/header-present.js +4 -0
- package/lib/checks/navigation/header-present.json +1 -4
- package/lib/checks/navigation/heading-order-after.js +9 -13
- package/lib/checks/navigation/heading-order.js +15 -0
- package/lib/checks/navigation/heading-order.json +2 -2
- package/lib/checks/navigation/identical-links-same-purpose-after.js +65 -71
- package/lib/checks/navigation/identical-links-same-purpose.js +31 -0
- package/lib/checks/navigation/identical-links-same-purpose.json +2 -2
- package/lib/checks/navigation/internal-link-present.js +4 -0
- package/lib/checks/navigation/internal-link-present.json +1 -1
- package/lib/checks/navigation/landmark.js +3 -0
- package/lib/checks/navigation/landmark.json +1 -4
- package/lib/checks/navigation/meta-refresh.js +4 -0
- package/lib/checks/navigation/meta-refresh.json +1 -1
- package/lib/checks/navigation/{p-as-heading-evaluate.js → p-as-heading.js} +42 -47
- package/lib/checks/navigation/p-as-heading.json +1 -1
- package/lib/checks/navigation/{region-evaluate.js → region.js} +34 -48
- package/lib/checks/navigation/region.json +1 -1
- package/lib/checks/navigation/skip-link.js +5 -0
- package/lib/checks/navigation/skip-link.json +1 -1
- package/lib/checks/navigation/unique-frame-title-after.js +8 -12
- package/lib/checks/navigation/unique-frame-title.js +6 -0
- package/lib/checks/navigation/unique-frame-title.json +2 -2
- package/lib/checks/parsing/duplicate-id-active.json +2 -2
- package/lib/checks/parsing/duplicate-id-after.js +8 -12
- package/lib/checks/parsing/duplicate-id-aria.json +2 -2
- package/lib/checks/parsing/duplicate-id.js +17 -0
- package/lib/checks/parsing/duplicate-id.json +3 -3
- package/lib/checks/shared/aria-label.js +2 -0
- package/lib/checks/shared/aria-label.json +1 -1
- package/lib/checks/shared/aria-labelledby.js +2 -0
- package/lib/checks/shared/aria-labelledby.json +1 -1
- package/lib/checks/shared/avoid-inline-spacing.js +18 -0
- package/lib/checks/shared/avoid-inline-spacing.json +1 -4
- package/lib/checks/shared/button-has-visible-text.js +12 -0
- package/lib/checks/shared/button-has-visible-text.json +1 -1
- package/lib/checks/shared/doc-has-title.js +2 -0
- package/lib/checks/shared/doc-has-title.json +1 -1
- package/lib/checks/shared/exists.js +1 -0
- package/lib/checks/shared/exists.json +1 -1
- package/lib/checks/shared/has-alt.js +6 -0
- package/lib/checks/shared/has-alt.json +1 -1
- package/lib/checks/shared/has-visible-text.js +1 -0
- package/lib/checks/shared/has-visible-text.json +1 -1
- package/lib/checks/shared/is-on-screen.js +4 -0
- package/lib/checks/shared/is-on-screen.json +1 -1
- package/lib/checks/shared/non-empty-alt.js +2 -0
- package/lib/checks/shared/non-empty-alt.json +1 -4
- package/lib/checks/shared/non-empty-if-present.js +15 -0
- package/lib/checks/shared/non-empty-if-present.json +1 -1
- package/lib/checks/shared/non-empty-title.js +2 -0
- package/lib/checks/shared/non-empty-title.json +1 -4
- package/lib/checks/shared/non-empty-value.js +2 -0
- package/lib/checks/shared/non-empty-value.json +1 -4
- package/lib/checks/shared/role-none.js +1 -0
- package/lib/checks/shared/role-none.json +1 -8
- package/lib/checks/shared/role-presentation.js +1 -0
- package/lib/checks/shared/role-presentation.json +1 -8
- package/lib/checks/shared/svg-non-empty-title.js +4 -0
- package/lib/checks/shared/svg-non-empty-title.json +1 -1
- package/lib/checks/tables/caption-faked.js +10 -0
- package/lib/checks/tables/caption-faked.json +1 -1
- package/lib/checks/tables/has-caption.js +1 -0
- package/lib/checks/tables/has-caption.json +12 -0
- package/lib/checks/tables/has-summary.js +1 -0
- package/lib/checks/tables/has-summary.json +12 -0
- package/lib/checks/tables/has-th.js +31 -0
- package/lib/checks/tables/has-th.json +12 -0
- package/lib/checks/tables/headers-visible-text.js +30 -0
- package/lib/checks/tables/html5-scope.js +5 -0
- package/lib/checks/tables/html5-scope.json +1 -1
- package/lib/checks/tables/same-caption-summary.js +7 -0
- package/lib/checks/tables/same-caption-summary.json +1 -1
- package/lib/checks/tables/scope-value.js +5 -0
- package/lib/checks/tables/scope-value.json +1 -4
- package/lib/checks/tables/td-has-header.js +30 -0
- package/lib/checks/tables/td-has-header.json +1 -1
- package/lib/checks/tables/td-headers-attr.js +61 -0
- package/lib/checks/tables/td-headers-attr.json +1 -1
- package/lib/checks/tables/th-has-data-cells.js +76 -0
- package/lib/checks/tables/th-has-data-cells.json +1 -1
- package/lib/checks/tables/th-single-row-column.js +39 -0
- package/lib/checks/visibility/hidden-content.js +21 -0
- package/lib/checks/visibility/hidden-content.json +1 -1
- package/lib/commons/aria/arialabel-text.js +5 -9
- package/lib/commons/aria/arialabelledby-text.js +5 -8
- package/lib/commons/aria/attributes.js +45 -0
- package/lib/commons/aria/get-element-unallowed-roles.js +10 -16
- package/lib/commons/aria/get-owned-virtual.js +4 -7
- package/lib/commons/aria/get-role.js +8 -9
- package/lib/commons/aria/index.js +2419 -24
- package/lib/commons/aria/is-accessible-ref.js +6 -14
- package/lib/commons/aria/is-aria-role-allowed-on-element.js +7 -7
- package/lib/commons/aria/is-unsupported-role.js +4 -6
- package/lib/commons/aria/label-virtual.js +18 -10
- package/lib/commons/aria/named-from-contents.js +5 -8
- package/lib/commons/aria/roles.js +208 -0
- package/lib/commons/aria/validate-attr-value.js +9 -13
- package/lib/commons/color/center-point-of-rect.js +4 -5
- package/lib/commons/color/{color.js → contrast.js} +71 -3
- package/lib/commons/color/element-has-image.js +8 -7
- package/lib/commons/color/element-is-distinct.js +3 -3
- package/lib/commons/color/get-background-color.js +234 -31
- package/lib/commons/color/get-foreground-color.js +8 -14
- package/lib/commons/color/get-own-background-color.js +4 -6
- package/lib/commons/color/incomplete-data.js +44 -41
- package/lib/commons/color/index.js +3 -14
- package/lib/commons/dom/{reduce-to-elements-below-floating.js → elements-below-floating.js} +13 -10
- package/lib/commons/dom/find-elms-in-context.js +4 -7
- package/lib/commons/dom/find-up.js +51 -8
- package/lib/commons/dom/get-composed-parent.js +3 -4
- package/lib/commons/dom/get-element-by-reference.js +4 -4
- package/lib/commons/dom/get-element-coordinates.js +4 -6
- package/lib/commons/dom/get-element-stack.js +567 -6
- package/lib/commons/dom/get-root-node.js +2 -2
- package/lib/commons/dom/get-scroll-offset.js +3 -4
- package/lib/commons/dom/get-tabbable-elements.js +4 -5
- package/lib/commons/dom/get-viewport-size.js +7 -7
- package/lib/commons/dom/has-content-virtual.js +31 -9
- package/lib/commons/dom/idrefs.js +12 -13
- package/lib/commons/dom/index.js +4 -33
- package/lib/commons/dom/is-focusable.js +72 -6
- package/lib/commons/dom/is-hidden-with-css.js +5 -8
- package/lib/commons/dom/is-html5.js +5 -5
- package/lib/commons/dom/is-in-text-block.js +8 -21
- package/lib/commons/dom/is-modal-open.js +5 -14
- package/lib/commons/dom/is-node.js +3 -5
- package/lib/commons/dom/is-offscreen.js +7 -11
- package/lib/commons/dom/is-skip-link.js +4 -8
- package/lib/commons/dom/is-visible.js +11 -20
- package/lib/commons/dom/is-visual-content.js +4 -4
- package/lib/commons/dom/shadow-elements-from-point.js +6 -11
- package/lib/commons/dom/url-props-from-attribute.js +4 -4
- package/lib/commons/dom/visually-contains.js +4 -6
- package/lib/commons/dom/visually-overlaps.js +4 -4
- package/lib/commons/forms/index.js +3 -6
- package/lib/commons/forms/is-aria-combobox.js +4 -6
- package/lib/commons/forms/is-aria-listbox.js +4 -6
- package/lib/commons/forms/is-aria-range.js +4 -7
- package/lib/commons/forms/is-aria-textbox.js +4 -6
- package/lib/commons/forms/is-native-select.js +4 -4
- package/lib/commons/forms/is-native-textbox.js +3 -4
- package/lib/commons/index.js +3 -21
- package/lib/commons/matches/attributes.js +5 -12
- package/lib/commons/matches/condition.js +3 -4
- package/lib/commons/matches/from-definition.js +8 -26
- package/lib/commons/matches/from-function.js +4 -6
- package/lib/commons/matches/from-primative.js +4 -4
- package/lib/commons/matches/index.js +36 -20
- package/lib/commons/matches/node-name.js +5 -12
- package/lib/commons/matches/properties.js +5 -11
- package/lib/commons/table/get-all-cells.js +4 -4
- package/lib/commons/table/get-cell-position.js +4 -8
- package/lib/commons/table/get-headers.js +8 -14
- package/lib/commons/table/get-scope.js +5 -9
- package/lib/commons/table/index.js +3 -13
- package/lib/commons/table/is-column-header.js +4 -6
- package/lib/commons/table/is-data-cell.js +4 -6
- package/lib/commons/table/is-data-table.js +8 -14
- package/lib/commons/table/is-header.js +4 -8
- package/lib/commons/table/is-row-header.js +4 -6
- package/lib/commons/table/to-grid.js +5 -4
- package/lib/commons/table/traverse.js +72 -70
- package/lib/commons/text/accessible-text-virtual.js +31 -22
- package/lib/commons/text/form-control-value.js +34 -42
- package/lib/commons/text/index.js +3 -27
- package/lib/commons/text/is-human-interpretable.js +5 -8
- package/lib/commons/text/is-icon-ligature.js +5 -10
- package/lib/commons/text/is-valid-autocomplete.js +14 -14
- package/lib/commons/text/label-text.js +7 -13
- package/lib/commons/text/label-virtual.js +22 -13
- package/lib/commons/text/{native-element-type.js → native-element-types.js} +2 -3
- package/lib/commons/text/native-text-alternative.js +10 -11
- package/lib/commons/text/native-text-methods.js +12 -11
- package/lib/commons/text/sanitize.js +4 -4
- package/lib/commons/text/subtree-text.js +7 -12
- package/lib/commons/text/title-text.js +5 -9
- package/lib/commons/text/unicode.js +65 -3
- package/lib/commons/text/unsupported.js +3 -3
- package/lib/commons/text/visible-text-nodes.js +6 -8
- package/lib/commons/text/visible-virtual.js +19 -8
- package/lib/commons/utils/index.js +10 -0
- package/lib/core/base/audit.js +533 -474
- package/lib/core/base/cache.js +29 -26
- package/lib/core/base/check-result.js +4 -2
- package/lib/core/base/check.js +24 -47
- package/lib/core/base/context.js +23 -22
- package/lib/core/base/rule-result.js +4 -3
- package/lib/core/base/rule.js +56 -89
- package/lib/core/base/virtual-node/abstract-virtual-node.js +1 -10
- package/lib/core/base/virtual-node/serial-virtual-node.js +6 -8
- package/lib/core/base/virtual-node/virtual-node.js +7 -10
- package/lib/core/constants.js +69 -61
- package/lib/core/imports/index.js +22 -27
- package/lib/core/log.js +2 -4
- package/lib/core/public/{cleanup.js → cleanup-plugins.js} +2 -4
- package/lib/core/public/configure.js +4 -5
- package/lib/core/public/get-rules.js +2 -4
- package/lib/core/public/load.js +5 -9
- package/lib/core/public/plugins.js +4 -4
- package/lib/core/public/reporter.js +6 -10
- package/lib/core/public/reset.js +2 -2
- package/lib/core/public/run-rules.js +3 -2
- package/lib/core/public/run-virtual-rule.js +5 -13
- package/lib/core/public/run.js +3 -7
- package/lib/core/reporters/helpers/failure-summary.js +6 -4
- package/lib/core/reporters/helpers/get-environment-data.js +4 -4
- package/lib/core/reporters/helpers/incomplete-fallback-msg.js +5 -4
- package/lib/core/reporters/helpers/index.js +3 -21
- package/lib/core/reporters/helpers/process-aggregate.js +6 -8
- package/lib/core/reporters/na.js +7 -7
- package/lib/core/reporters/no-passes.js +6 -8
- package/lib/core/reporters/raw-env.js +5 -10
- package/lib/core/reporters/raw.js +4 -4
- package/lib/core/reporters/v1.js +8 -12
- package/lib/core/reporters/v2.js +21 -18
- package/lib/core/utils/aggregate.js +2 -4
- package/lib/core/utils/{aggregate-checks.js → aggregateChecks.js} +13 -19
- package/lib/core/utils/aggregateNodeResults.js +61 -0
- package/lib/core/utils/{aggregate-result.js → aggregateResult.js} +2 -5
- package/lib/core/utils/are-styles-set.js +4 -1
- package/lib/core/utils/assert.js +5 -5
- package/lib/core/utils/check-helper.js +11 -9
- package/lib/core/utils/clone.js +5 -6
- package/lib/core/utils/collect-results-from-frames.js +70 -9
- package/lib/core/utils/contains.js +3 -5
- package/lib/core/utils/css-parser.js +7 -8
- package/lib/core/utils/dq-element.js +7 -6
- package/lib/core/utils/element-matches.js +3 -3
- package/lib/core/utils/escape-selector.js +3 -4
- package/lib/core/utils/extend-meta-data.js +4 -7
- package/lib/core/utils/finalize-result.js +3 -7
- package/lib/core/utils/find-by.js +2 -4
- package/lib/core/utils/{get-flattened-tree.js → flattened-tree.js} +19 -10
- package/lib/core/utils/get-all-checks.js +3 -4
- package/lib/core/utils/get-base-lang.js +2 -4
- package/lib/core/utils/get-check-message.js +4 -7
- package/lib/core/utils/get-check-option.js +2 -4
- package/lib/core/utils/get-friendly-uri-end.js +5 -4
- package/lib/core/utils/get-node-attributes.js +4 -4
- package/lib/core/utils/get-root-node.js +4 -4
- package/lib/core/utils/get-scroll.js +2 -4
- package/lib/core/utils/get-selector.js +14 -22
- package/lib/core/utils/get-stylesheet-factory.js +2 -4
- package/lib/core/utils/get-xpath.js +5 -6
- package/lib/core/utils/index.js +5 -69
- package/lib/core/utils/inject-style.js +6 -1
- package/lib/core/utils/is-hidden.js +7 -10
- package/lib/core/utils/is-html-element.js +2 -4
- package/lib/core/utils/is-shadow-root.js +4 -4
- package/lib/core/utils/is-xhtml.js +3 -4
- package/lib/core/utils/matches.js +21 -15
- package/lib/core/utils/memoize.js +3 -8
- package/lib/core/utils/merge-results.js +10 -16
- package/lib/core/utils/node-sorter.js +2 -4
- package/lib/core/utils/parse-crossorigin-stylesheet.js +4 -10
- package/lib/core/utils/parse-sameorigin-stylesheet.js +3 -7
- package/lib/core/utils/parse-stylesheet.js +5 -10
- package/lib/core/utils/performance-timer.js +3 -4
- package/lib/core/utils/pollyfills.js +8 -5
- package/lib/core/utils/preload-cssom.js +31 -27
- package/lib/core/utils/preload-media.js +3 -8
- package/lib/core/utils/preload.js +12 -18
- package/lib/core/utils/process-message.js +4 -7
- package/lib/core/utils/publish-metadata.js +13 -16
- package/lib/core/utils/{query-selector-all-filter.js → qsa.js} +19 -11
- package/lib/core/utils/queue.js +122 -120
- package/lib/core/utils/respondable.js +228 -234
- package/lib/core/utils/rule-should-run.js +4 -5
- package/lib/core/utils/{get-scroll-state.js → scroll-state.js} +20 -5
- package/lib/core/utils/select.js +57 -9
- package/lib/core/utils/to-array.js +14 -3
- package/lib/core/utils/token-list.js +4 -4
- package/lib/core/utils/uuid.js +208 -208
- package/lib/core/utils/valid-input-type.js +4 -4
- package/lib/core/utils/valid-langs.js +3 -4
- package/lib/rules/aria-allowed-attr-matches.js +7 -13
- package/lib/rules/aria-allowed-attr.json +1 -1
- package/lib/rules/aria-allowed-role-matches.js +7 -13
- package/lib/rules/aria-allowed-role.json +1 -1
- package/lib/rules/aria-dpub-role-fallback-matches.js +10 -0
- package/lib/rules/aria-dpub-role-fallback.json +14 -0
- package/lib/rules/aria-form-field-name-matches.js +44 -49
- package/lib/rules/aria-has-attr-matches.js +7 -13
- package/lib/rules/aria-hidden-focus-matches.js +2 -6
- package/lib/rules/aria-hidden-focus.json +1 -1
- package/lib/rules/aria-input-field-name.json +2 -2
- package/lib/rules/aria-roles.json +1 -1
- package/lib/rules/aria-toggle-field-name.json +1 -1
- package/lib/rules/aria-valid-attr-value.json +1 -1
- package/lib/rules/aria-valid-attr.json +1 -1
- package/lib/rules/autocomplete-matches.js +39 -48
- package/lib/rules/autocomplete-valid.json +1 -1
- package/lib/rules/bypass-matches.js +1 -5
- package/lib/rules/bypass.json +1 -1
- package/lib/rules/checkboxgroup.json +13 -0
- package/lib/rules/color-contrast-matches.js +130 -139
- package/lib/rules/color-contrast.json +1 -1
- package/lib/rules/data-table-large-matches.js +9 -15
- package/lib/rules/data-table-matches.js +1 -7
- package/lib/rules/definition-list.json +1 -1
- package/lib/rules/dlitem.json +1 -1
- package/lib/rules/document-title.json +1 -1
- package/lib/rules/duplicate-id-active-matches.js +7 -14
- package/lib/rules/duplicate-id-active.json +1 -1
- package/lib/rules/duplicate-id-aria-matches.js +1 -7
- package/lib/rules/duplicate-id-aria.json +1 -1
- package/lib/rules/duplicate-id-misc-matches.js +10 -16
- package/lib/rules/duplicate-id.json +1 -1
- package/lib/rules/empty-heading.json +2 -2
- package/lib/rules/focus-order-semantics.json +1 -1
- package/lib/rules/form-field-multiple-labels.json +1 -1
- package/lib/rules/frame-title-has-text.js +2 -0
- package/lib/rules/frame-title-unique.json +1 -1
- package/lib/rules/heading-matches.js +13 -17
- package/lib/rules/heading-order.json +1 -1
- package/lib/rules/html-has-lang.json +1 -1
- package/lib/rules/html-namespace-matches.js +1 -5
- package/lib/rules/html-xml-lang-mismatch.json +1 -1
- package/lib/rules/identical-links-same-purpose-matches.js +9 -14
- package/lib/rules/identical-links-same-purpose.json +1 -1
- package/lib/rules/inserted-into-focus-order-matches.js +1 -7
- package/lib/rules/label-content-name-mismatch-matches.js +38 -49
- package/lib/rules/label-content-name-mismatch.json +1 -1
- package/lib/rules/label-matches.js +9 -13
- package/lib/rules/label-title-only.json +1 -1
- package/lib/rules/label.json +1 -1
- package/lib/rules/landmark-banner-is-top-level.json +1 -1
- package/lib/rules/landmark-contentinfo-is-top-level.json +1 -1
- package/lib/rules/landmark-has-body-context.js +8 -0
- package/lib/rules/landmark-unique-matches.js +33 -41
- package/lib/rules/landmark-unique.json +1 -1
- package/lib/rules/layout-table-matches.js +8 -0
- package/lib/rules/layout-table.json +14 -0
- package/lib/rules/link-in-text-block-matches.js +11 -18
- package/lib/rules/link-in-text-block.json +1 -1
- package/lib/rules/list.json +1 -1
- package/lib/rules/listitem.json +1 -1
- package/lib/rules/no-autoplay-audio-matches.js +15 -19
- package/lib/rules/no-autoplay-audio.json +1 -1
- package/lib/rules/no-empty-role-matches.js +6 -10
- package/lib/rules/no-role-matches.js +1 -5
- package/lib/rules/not-html-matches.js +1 -5
- package/lib/rules/p-as-heading-matches.js +14 -18
- package/lib/rules/p-as-heading.json +1 -1
- package/lib/rules/radiogroup.json +13 -0
- package/lib/rules/role-img-alt.json +1 -1
- package/lib/rules/scrollable-region-focusable-matches.js +26 -31
- package/lib/rules/scrollable-region-focusable.json +1 -1
- package/lib/rules/skip-link-matches.js +1 -7
- package/lib/rules/skip-link.json +1 -1
- package/lib/rules/svg-img-alt.json +1 -1
- package/lib/rules/svg-namespace-matches.js +1 -5
- package/lib/rules/table-fake-caption.json +1 -1
- package/lib/rules/td-has-header.json +1 -1
- package/lib/rules/th-has-data-cells.json +1 -1
- package/lib/rules/valid-lang.json +1 -1
- package/lib/rules/video-description.json +21 -0
- package/lib/rules/window-is-top.js +3 -0
- package/lib/rules/xml-lang-mismatch-matches.js +12 -17
- package/locales/da.json +48 -0
- package/locales/de.json +49 -0
- package/locales/es.json +48 -0
- package/locales/fr.json +60 -1
- package/locales/ja.json +59 -0
- package/locales/ko.json +48 -0
- package/locales/pt_BR.json +59 -0
- package/package.json +2 -5
- package/sri-history.json +1 -5
- package/lib/checks/aria/abstractrole-evaluate.js +0 -17
- package/lib/checks/aria/aria-allowed-attr-evaluate.js +0 -41
- package/lib/checks/aria/aria-allowed-role-evaluate.js +0 -31
- package/lib/checks/aria/aria-errormessage-evaluate.js +0 -39
- package/lib/checks/aria/aria-hidden-body-evaluate.js +0 -5
- package/lib/checks/aria/aria-required-attr-evaluate.js +0 -70
- package/lib/checks/aria/aria-required-children-evaluate.js +0 -229
- package/lib/checks/aria/aria-required-parent-evaluate.js +0 -91
- package/lib/checks/aria/aria-roledescription-evaluate.js +0 -18
- package/lib/checks/aria/aria-unsupported-attr-evaluate.js +0 -46
- package/lib/checks/aria/aria-valid-attr-evaluate.js +0 -32
- package/lib/checks/aria/aria-valid-attr-value-evaluate.js +0 -87
- package/lib/checks/aria/fallbackrole-evaluate.js +0 -7
- package/lib/checks/aria/has-widget-role-evaluate.js +0 -12
- package/lib/checks/aria/invalidrole-evaluate.js +0 -21
- package/lib/checks/aria/no-implicit-explicit-label-evaluate.js +0 -26
- package/lib/checks/aria/unsupportedrole-evaluate.js +0 -7
- package/lib/checks/color/color-contrast-evaluate.js +0 -102
- package/lib/checks/color/link-in-text-block-evaluate.js +0 -94
- package/lib/checks/forms/autocomplete-appropriate-evaluate.js +0 -74
- package/lib/checks/forms/autocomplete-valid-evaluate.js +0 -8
- package/lib/checks/generic/README.md +0 -13
- package/lib/checks/generic/attr-non-space-content-evaluate.js +0 -14
- package/lib/checks/generic/has-descendant-after.js +0 -15
- package/lib/checks/generic/has-descendant-evaluate.js +0 -20
- package/lib/checks/generic/has-text-content-evaluate.js +0 -7
- package/lib/checks/generic/matches-definition-evaluate.js +0 -7
- package/lib/checks/generic/page-no-duplicate-after.js +0 -6
- package/lib/checks/generic/page-no-duplicate-evaluate.js +0 -42
- package/lib/checks/keyboard/accesskeys-evaluate.js +0 -11
- package/lib/checks/keyboard/focusable-content-evaluate.js +0 -20
- package/lib/checks/keyboard/focusable-disabled-evaluate.js +0 -36
- package/lib/checks/keyboard/focusable-element-evaluate.js +0 -47
- package/lib/checks/keyboard/focusable-modal-open-evaluate.js +0 -20
- package/lib/checks/keyboard/focusable-no-name-evaluate.js +0 -13
- package/lib/checks/keyboard/focusable-not-tabbable-evaluate.js +0 -36
- package/lib/checks/keyboard/landmark-is-top-level-evaluate.js +0 -25
- package/lib/checks/keyboard/tabindex-evaluate.js +0 -10
- package/lib/checks/label/alt-space-value-evaluate.js +0 -7
- package/lib/checks/label/duplicate-img-label-evaluate.js +0 -23
- package/lib/checks/label/explicit-evaluate.js +0 -23
- package/lib/checks/label/help-same-as-label-evaluate.js +0 -28
- package/lib/checks/label/hidden-explicit-label-evaluate.js +0 -20
- package/lib/checks/label/implicit-evaluate.js +0 -12
- package/lib/checks/label/label-content-name-mismatch-evaluate.js +0 -71
- package/lib/checks/label/multiple-label-evaluate.js +0 -44
- package/lib/checks/label/title-only-evaluate.js +0 -11
- package/lib/checks/landmarks/landmark-is-unique-evaluate.js +0 -14
- package/lib/checks/language/has-lang-evaluate.js +0 -37
- package/lib/checks/language/valid-lang-evaluate.js +0 -30
- package/lib/checks/language/xml-lang-mismatch-evaluate.js +0 -10
- package/lib/checks/lists/dlitem-evaluate.js +0 -30
- package/lib/checks/lists/listitem-evaluate.js +0 -28
- package/lib/checks/lists/only-dlitems-evaluate.js +0 -51
- package/lib/checks/lists/only-listitems-evaluate.js +0 -63
- package/lib/checks/lists/structured-dlitems-evaluate.js +0 -26
- package/lib/checks/media/caption-evaluate.js +0 -14
- package/lib/checks/media/frame-tested-evaluate.js +0 -28
- package/lib/checks/media/no-autoplay-audio-evaluate.js +0 -97
- package/lib/checks/mobile/css-orientation-lock-evaluate.js +0 -254
- package/lib/checks/mobile/meta-viewport-scale-evaluate.js +0 -59
- package/lib/checks/navigation/heading-order-evaluate.js +0 -19
- package/lib/checks/navigation/identical-links-same-purpose-evaluate.js +0 -35
- package/lib/checks/navigation/internal-link-present-evaluate.js +0 -10
- package/lib/checks/navigation/meta-refresh-evaluate.js +0 -8
- package/lib/checks/navigation/skip-link-evaluate.js +0 -11
- package/lib/checks/navigation/unique-frame-title-evaluate.js +0 -11
- package/lib/checks/parsing/duplicate-id-evaluate.js +0 -24
- package/lib/checks/shared/aria-label-evaluate.js +0 -8
- package/lib/checks/shared/aria-labelledby-evaluate.js +0 -8
- package/lib/checks/shared/avoid-inline-spacing-evaluate.js +0 -16
- package/lib/checks/shared/doc-has-title-evaluate.js +0 -8
- package/lib/checks/shared/exists-evaluate.js +0 -5
- package/lib/checks/shared/has-accessible-text-evaluate.js +0 -7
- package/lib/checks/shared/has-accessible-text.json +0 -11
- package/lib/checks/shared/has-alt-evaluate.js +0 -10
- package/lib/checks/shared/is-on-screen-evaluate.js +0 -8
- package/lib/checks/shared/non-empty-if-present-evaluate.js +0 -19
- package/lib/checks/shared/svg-non-empty-title-evaluate.js +0 -8
- package/lib/checks/tables/caption-faked-evaluate.js +0 -16
- package/lib/checks/tables/html5-scope-evaluate.js +0 -11
- package/lib/checks/tables/same-caption-summary-evaluate.js +0 -12
- package/lib/checks/tables/scope-value-evaluate.js +0 -7
- package/lib/checks/tables/td-has-header-evaluate.js +0 -33
- package/lib/checks/tables/td-headers-attr-evaluate.js +0 -67
- package/lib/checks/tables/th-has-data-cells-evaluate.js +0 -82
- package/lib/checks/visibility/hidden-content-evaluate.js +0 -34
- package/lib/commons/aria/allowed-attr.js +0 -20
- package/lib/commons/aria/get-role-type.js +0 -16
- package/lib/commons/aria/get-roles-by-type.js +0 -17
- package/lib/commons/aria/get-roles-with-name-from-contents.js +0 -19
- package/lib/commons/aria/implicit-nodes.js +0 -24
- package/lib/commons/aria/implicit-role.js +0 -45
- package/lib/commons/aria/is-valid-role.js +0 -21
- package/lib/commons/aria/label.js +0 -17
- package/lib/commons/aria/lookup-table.js +0 -2583
- package/lib/commons/aria/required-attr.js +0 -17
- package/lib/commons/aria/required-context.js +0 -23
- package/lib/commons/aria/required-owned.js +0 -23
- package/lib/commons/aria/validate-attr.js +0 -16
- package/lib/commons/color/filtered-rect-stack.js +0 -51
- package/lib/commons/color/flatten-colors.js +0 -22
- package/lib/commons/color/get-background-stack.js +0 -130
- package/lib/commons/color/get-contrast.js +0 -27
- package/lib/commons/color/get-rect-stack.js +0 -32
- package/lib/commons/color/has-valid-contrast-ratio.js +0 -28
- package/lib/commons/dom/find-up-virtual.js +0 -52
- package/lib/commons/dom/focus-disabled.js +0 -14
- package/lib/commons/dom/get-rect-stack.js +0 -522
- package/lib/commons/dom/get-text-element-stack.js +0 -57
- package/lib/commons/dom/has-content.js +0 -21
- package/lib/commons/dom/inserted-into-focus-order.js +0 -24
- package/lib/commons/dom/is-natively-focusable.js +0 -40
- package/lib/commons/dom/is-opaque.js +0 -16
- package/lib/commons/matches/matches.js +0 -39
- package/lib/commons/text/accessible-text.js +0 -19
- package/lib/commons/text/has-unicode.js +0 -38
- package/lib/commons/text/label.js +0 -19
- package/lib/commons/text/remove-unicode.js +0 -38
- package/lib/commons/text/visible.js +0 -18
- package/lib/core/base/metadata-function-map.js +0 -325
- package/lib/core/core.js +0 -88
- package/lib/core/utils/aggregate-node-results.js +0 -65
- package/lib/core/utils/closest.js +0 -24
- package/lib/core/utils/get-node-from-tree.js +0 -13
- package/lib/core/utils/is-node-in-context.js +0 -46
- package/lib/core/utils/query-selector-all.js +0 -15
- package/lib/core/utils/send-command-to-frame.js +0 -65
- package/lib/core/utils/set-scroll-state.js +0 -20
- package/lib/core/utils/unique-array.js +0 -13
- package/lib/rules/frame-title-has-text-matches.js +0 -8
- package/lib/rules/landmark-has-body-context-matches.js +0 -13
- package/lib/rules/window-is-top-matches.js +0 -7
- package/locales/eu.json +0 -724
package/CHANGELOG.md
CHANGED
|
@@ -2,53 +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
|
-
### [3.5.4-canary.e9dd259](https://github.com/dequelabs/axe-core/compare/v3.5.3...v3.5.4-canary.e9dd259) (2020-06-05)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* **avoid-inline-spacing:** add option for which css properties to look at ([#2244](https://github.com/dequelabs/axe-core/issues/2244)) ([93c027a](https://github.com/dequelabs/axe-core/commit/93c027ab7d081dcda401399e1cbdb5a27026c927))
|
|
11
|
-
* **checks:** normalize check options to alway be an object ([#2219](https://github.com/dequelabs/axe-core/issues/2219)) ([da12da7](https://github.com/dequelabs/axe-core/commit/da12da79b1e7a16887807980e03d4e8244bed560))
|
|
12
|
-
* **checks,rules:** remove deprecated checks and rules ([#2214](https://github.com/dequelabs/axe-core/issues/2214)) ([317545a](https://github.com/dequelabs/axe-core/commit/317545a0916a16e05263d1cedb6d9753e4ef6e19))
|
|
13
|
-
* **duplicate-img-label:** add option for parentSelector ([#2216](https://github.com/dequelabs/axe-core/issues/2216)) ([8906806](https://github.com/dequelabs/axe-core/commit/8906806fa039ba105bea745495e91031461af445))
|
|
14
|
-
* **has-descendant, page-no-duplicate:** move page-has-elm and page-no-duplicate to generic check ([#2229](https://github.com/dequelabs/axe-core/issues/2229)) ([59125a0](https://github.com/dequelabs/axe-core/commit/59125a056d4b591ee20a67be12e1c66e83ec7c25))
|
|
15
|
-
* **has-lang:** add option for which attributes to look at ([#2239](https://github.com/dequelabs/axe-core/issues/2239)) ([e69c46a](https://github.com/dequelabs/axe-core/commit/e69c46a49f348b8ae1fec8929e4688940b644a06))
|
|
16
|
-
* **has-text-content:** add generic check has-text-content ([#2234](https://github.com/dequelabs/axe-core/issues/2234)) ([60ddc65](https://github.com/dequelabs/axe-core/commit/60ddc6577b70e27e9e7fe340d163b01360035e13))
|
|
17
|
-
* **i18n:** add Basque (eu) translation ([#1964](https://github.com/dequelabs/axe-core/issues/1964)) ([176cf82](https://github.com/dequelabs/axe-core/commit/176cf824288a927e5e21dd64a7793251a31ef180))
|
|
18
|
-
* **matches-definition:** add generic check matches-definition ([#2233](https://github.com/dequelabs/axe-core/issues/2233)) ([20467aa](https://github.com/dequelabs/axe-core/commit/20467aa48705d4b6b98f123031431bb3ac3ee22b))
|
|
19
|
-
* **metadata-function-map:** add metadata function map to support check evaulate functions as an id string ([#2162](https://github.com/dequelabs/axe-core/issues/2162)) ([ec9b931](https://github.com/dequelabs/axe-core/commit/ec9b931c3123b3252e3c0afd5b059f0bbcfcc0d0))
|
|
20
|
-
* **non-space-content:** switch all non-empty checks to new generic check ([#2215](https://github.com/dequelabs/axe-core/issues/2215)) ([7ce7b00](https://github.com/dequelabs/axe-core/commit/7ce7b00c2d302d830bd2c0efa027d0ea3b10770c))
|
|
21
|
-
* **region:** add option to match nodes as region ([#2249](https://github.com/dequelabs/axe-core/issues/2249)) ([b544554](https://github.com/dequelabs/axe-core/commit/b544554902b3aa0afb477e5e78140780f42e3405))
|
|
22
|
-
* **rule:** add reviewOnFail option to have rule return as needs review instead of violation ([#2235](https://github.com/dequelabs/axe-core/issues/2235)) ([bb72acd](https://github.com/dequelabs/axe-core/commit/bb72acde17e9f783ac136c30a79f14144326a7df))
|
|
23
|
-
* **scope-value:** add options for valid scope values ([#2245](https://github.com/dequelabs/axe-core/issues/2245)) ([44269ec](https://github.com/dequelabs/axe-core/commit/44269ec6695645417dda03b26fcb04abebc15f5f))
|
|
24
|
-
* **utils.getFlattenTree:** default to documentElement ([#2260](https://github.com/dequelabs/axe-core/issues/2260)) ([8b14ccc](https://github.com/dequelabs/axe-core/commit/8b14ccc5b1bd89892f57ff0f02de2045e7c3756f))
|
|
25
|
-
* **valid-lang:** add option for which attributes to look at ([#2240](https://github.com/dequelabs/axe-core/issues/2240)) ([ffee19e](https://github.com/dequelabs/axe-core/commit/ffee19e4a769d66f9c81016dce83ad654609a9df))
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### Bug Fixes
|
|
29
|
-
|
|
30
|
-
* **aria-input-field-name:** add the missing word "must" to help metadata ([2633fc6](https://github.com/dequelabs/axe-core/commit/2633fc6e83c731dcda038bb6c2c132cf9ea7cc5f))
|
|
31
|
-
* **aria-required-attr:** pass aria-checked for elements with checked property ([#2226](https://github.com/dequelabs/axe-core/issues/2226)) ([64318a5](https://github.com/dequelabs/axe-core/commit/64318a5bce02f05c6e6a1acf739c354b84b88082))
|
|
32
|
-
* **axe.d.ts:** add `element` to NodeResults ([#2211](https://github.com/dequelabs/axe-core/issues/2211)) ([2429355](https://github.com/dequelabs/axe-core/commit/242935552c1679f0c98aff8585fd39c0442d2d6e))
|
|
33
|
-
* **color-contrast:** fix font-weight calculation for safari ([#2276](https://github.com/dequelabs/axe-core/issues/2276)) ([4e0bf65](https://github.com/dequelabs/axe-core/commit/4e0bf65f448cdefc5c6f3170b493cd1a4f68a1ed))
|
|
34
|
-
* **color-contrast:** mark more punctutions for review ([#2126](https://github.com/dequelabs/axe-core/issues/2126)) ([ff946c7](https://github.com/dequelabs/axe-core/commit/ff946c7376bb83028bf9c53dc2a8c391396b9d78))
|
|
35
|
-
* **color-contrast:** properly calculate position of children of floated elements ([#2230](https://github.com/dequelabs/axe-core/issues/2230)) ([b5f4168](https://github.com/dequelabs/axe-core/commit/b5f4168ea95d55dc58da18b9fd1bf6d523a5d2ab))
|
|
36
|
-
* **duplicate-id:** list the duplicate id in message ([#2163](https://github.com/dequelabs/axe-core/issues/2163)) ([f5d4ff9](https://github.com/dequelabs/axe-core/commit/f5d4ff9e792b979c7f7c7cf8b3607f3969c25eb4))
|
|
37
|
-
* **has-lang:** update message to indicate that xml:lang is not valid on HTML pages ([c0c32f1](https://github.com/dequelabs/axe-core/commit/c0c32f1f8dca9cec18c672001e243d47139ec720))
|
|
38
|
-
* **header-present:** update verbiage to use heading instead of header ([2d514a7](https://github.com/dequelabs/axe-core/commit/2d514a77f9d4a87b9f08f47814907272d1dc4c42))
|
|
39
|
-
* **implicit-roles:** add proper implicit role calculation ([#2242](https://github.com/dequelabs/axe-core/issues/2242)) ([e9dd259](https://github.com/dequelabs/axe-core/commit/e9dd2598b469fcbf936517aba33f983191301ff9))
|
|
40
|
-
* **listitem:** do not fail for parent with role=presentation|none ([#2241](https://github.com/dequelabs/axe-core/issues/2241)) ([2eadb15](https://github.com/dequelabs/axe-core/commit/2eadb15aef3e1fb6e1c7cf6b041df5c9d4ebbb8a))
|
|
41
|
-
* **meta-viewport:** don't throw error if viewport property doesn't have a value ([#2238](https://github.com/dequelabs/axe-core/issues/2238)) ([7088c7a](https://github.com/dequelabs/axe-core/commit/7088c7a8456c0f254873da2a7f8d1bd0cc682d69))
|
|
42
|
-
* **meta-viewport:** parse negative and string values for `maxim… ([#2137](https://github.com/dequelabs/axe-core/issues/2137)) ([7d7df88](https://github.com/dequelabs/axe-core/commit/7d7df88395ba83ecf15e1c80cc0d1cb397b9e6c3))
|
|
43
|
-
* **page-no-duplicate-contentinfo:** do not fail when first footer is inside article ([a359301](https://github.com/dequelabs/axe-core/commit/a359301b4d8fa3bf9a94e23194d2071d5381c5fd))
|
|
44
|
-
* **required-children:** consider overriding descendant role(s)… ([#2131](https://github.com/dequelabs/axe-core/issues/2131)) ([e1c11dd](https://github.com/dequelabs/axe-core/commit/e1c11ddf6e001eaa593a477eb7a5cb2f3c020e6d))
|
|
45
|
-
* **respondable:** ignore reflected messages from iframes ([acadf85](https://github.com/dequelabs/axe-core/commit/acadf853b28caba992d833c33a8b19db0885aea7))
|
|
46
|
-
* **td-has-headers:** don't fail for empty headers attribute ([fb4e113](https://github.com/dequelabs/axe-core/commit/fb4e1137822a30739fe56d7dead9922f44c30a0a))
|
|
47
|
-
* **td-headers-attr:** mark as needs review if headers attr is empty ([8353577](https://github.com/dequelabs/axe-core/commit/83535774aebdd57d747b42fa7151b52fcb65cb76))
|
|
48
|
-
* **th-has-data-cells:** fail when only cell points to different header ([333ab55](https://github.com/dequelabs/axe-core/commit/333ab555662ce58ecef52e41a708fd4727b8f455))
|
|
49
|
-
* **types:** Add "wcag21aa" and "wcag21a" to our TS definition ([#2272](https://github.com/dequelabs/axe-core/issues/2272)) ([23674d4](https://github.com/dequelabs/axe-core/commit/23674d4403a7088996a758d0081b869516be4aea))
|
|
50
|
-
* **types:** Add missing properties to `Spec` ([#2273](https://github.com/dequelabs/axe-core/issues/2273)) ([c39ba9f](https://github.com/dequelabs/axe-core/commit/c39ba9ffbd3a9777660da1d7e27d2471fc4158cd))
|
|
51
|
-
|
|
52
5
|
### [3.5.4](https://github.com/dequelabs/axe-core/compare/v3.5.3...v3.5.4) (2020-05-22)
|
|
53
6
|
|
|
54
7
|
### Bug Fixes
|
package/axe.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
declare namespace axe {
|
|
6
6
|
type ImpactValue = 'minor' | 'moderate' | 'serious' | 'critical';
|
|
7
7
|
|
|
8
|
-
type TagValue = 'wcag2a' | 'wcag2aa' | 'section508' | 'best-practice'
|
|
8
|
+
type TagValue = 'wcag2a' | 'wcag2aa' | 'section508' | 'best-practice';
|
|
9
9
|
|
|
10
10
|
type ReporterVersion = 'v1' | 'v2' | 'raw' | 'raw-env' | 'no-passes';
|
|
11
11
|
|
|
@@ -85,7 +85,6 @@ declare namespace axe {
|
|
|
85
85
|
all: CheckResult[];
|
|
86
86
|
none: CheckResult[];
|
|
87
87
|
failureSummary?: string;
|
|
88
|
-
element?: HTMLElement;
|
|
89
88
|
}
|
|
90
89
|
interface CheckResult {
|
|
91
90
|
id: string;
|
|
@@ -125,10 +124,7 @@ declare namespace axe {
|
|
|
125
124
|
checks?: Check[];
|
|
126
125
|
rules?: Rule[];
|
|
127
126
|
locale?: Locale;
|
|
128
|
-
disableOtherRules?: boolean;
|
|
129
127
|
axeVersion?: string;
|
|
130
|
-
// Deprecated - do not use.
|
|
131
|
-
ver?: string;
|
|
132
128
|
}
|
|
133
129
|
interface Check {
|
|
134
130
|
id: string;
|