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.
Files changed (641) hide show
  1. package/CHANGELOG.md +0 -47
  2. package/axe.d.ts +1 -5
  3. package/axe.js +21991 -23735
  4. package/axe.min.js +2 -2
  5. package/bower.json +2 -8
  6. package/doc/API.md +11 -11
  7. package/doc/projects.md +0 -1
  8. package/doc/rule-descriptions.md +99 -93
  9. package/lib/checks/aria/abstractrole.js +10 -0
  10. package/lib/checks/aria/abstractrole.json +1 -1
  11. package/lib/checks/aria/allowed-attr.js +39 -0
  12. package/lib/checks/aria/{aria-allowed-attr.json → allowed-attr.json} +1 -1
  13. package/lib/checks/aria/aria-allowed-role.js +28 -0
  14. package/lib/checks/aria/aria-allowed-role.json +1 -1
  15. package/lib/checks/aria/aria-hidden-body.js +1 -0
  16. package/lib/checks/aria/aria-hidden-body.json +1 -1
  17. package/lib/checks/aria/aria-roledescription.js +14 -0
  18. package/lib/checks/aria/aria-roledescription.json +1 -1
  19. package/lib/checks/aria/errormessage.js +33 -0
  20. package/lib/checks/aria/{aria-errormessage.json → errormessage.json} +1 -1
  21. package/lib/checks/aria/fallbackrole.js +1 -0
  22. package/lib/checks/aria/fallbackrole.json +1 -1
  23. package/lib/checks/aria/has-widget-role.js +6 -0
  24. package/lib/checks/aria/has-widget-role.json +1 -1
  25. package/lib/checks/aria/implicit-role-fallback.js +6 -0
  26. package/lib/checks/aria/implicit-role-fallback.json +12 -0
  27. package/lib/checks/aria/invalidrole.js +17 -0
  28. package/lib/checks/aria/invalidrole.json +1 -1
  29. package/lib/checks/aria/no-implicit-explicit-label.js +21 -0
  30. package/lib/checks/aria/no-implicit-explicit-label.json +1 -1
  31. package/lib/checks/aria/required-attr.js +53 -0
  32. package/lib/checks/aria/{aria-required-attr.json → required-attr.json} +1 -1
  33. package/lib/checks/aria/required-children.js +154 -0
  34. package/lib/checks/aria/{aria-required-children.json → required-children.json} +1 -1
  35. package/lib/checks/aria/required-parent.js +87 -0
  36. package/lib/checks/aria/{aria-required-parent.json → required-parent.json} +1 -1
  37. package/lib/checks/aria/unsupportedattr.js +39 -0
  38. package/lib/checks/aria/{aria-unsupported-attr.json → unsupportedattr.json} +1 -1
  39. package/lib/checks/aria/unsupportedrole.js +1 -0
  40. package/lib/checks/aria/unsupportedrole.json +1 -1
  41. package/lib/checks/aria/valid-attr-value.js +80 -0
  42. package/lib/checks/aria/{aria-valid-attr-value.json → valid-attr-value.json} +1 -1
  43. package/lib/checks/aria/valid-attr.js +25 -0
  44. package/lib/checks/aria/{aria-valid-attr.json → valid-attr.json} +1 -1
  45. package/lib/checks/aria/{valid-scrollable-semantics-evaluate.js → valid-scrollable-semantics.js} +2 -2
  46. package/lib/checks/aria/valid-scrollable-semantics.json +1 -1
  47. package/lib/checks/color/color-contrast.js +86 -0
  48. package/lib/checks/color/color-contrast.json +1 -1
  49. package/lib/checks/color/link-in-text-block.js +85 -0
  50. package/lib/checks/color/link-in-text-block.json +1 -1
  51. package/lib/checks/forms/autocomplete-appropriate.js +67 -0
  52. package/lib/checks/forms/autocomplete-appropriate.json +1 -1
  53. package/lib/checks/forms/autocomplete-valid.js +2 -0
  54. package/lib/checks/forms/autocomplete-valid.json +1 -1
  55. package/lib/checks/forms/fieldset-after.js +25 -0
  56. package/lib/checks/forms/fieldset.js +109 -0
  57. package/lib/checks/forms/fieldset.json +20 -0
  58. package/lib/checks/forms/group-labelledby-after.js +16 -0
  59. package/lib/checks/forms/group-labelledby.js +66 -0
  60. package/lib/checks/forms/group-labelledby.json +17 -0
  61. package/lib/checks/keyboard/accesskeys-after.js +18 -22
  62. package/lib/checks/keyboard/accesskeys.js +5 -0
  63. package/lib/checks/keyboard/accesskeys.json +2 -2
  64. package/lib/checks/keyboard/focusable-content.js +16 -0
  65. package/lib/checks/keyboard/focusable-content.json +1 -1
  66. package/lib/checks/keyboard/focusable-disabled.js +30 -0
  67. package/lib/checks/keyboard/focusable-disabled.json +1 -1
  68. package/lib/checks/keyboard/focusable-element.js +12 -0
  69. package/lib/checks/keyboard/focusable-element.json +1 -1
  70. package/lib/checks/keyboard/focusable-modal-open.js +14 -0
  71. package/lib/checks/keyboard/focusable-modal-open.json +1 -1
  72. package/lib/checks/keyboard/focusable-no-name.js +6 -0
  73. package/lib/checks/keyboard/focusable-no-name.json +1 -1
  74. package/lib/checks/keyboard/focusable-not-tabbable.js +30 -0
  75. package/lib/checks/keyboard/focusable-not-tabbable.json +1 -1
  76. package/lib/checks/keyboard/landmark-is-top-level.js +18 -0
  77. package/lib/checks/keyboard/landmark-is-top-level.json +1 -1
  78. package/lib/checks/keyboard/page-has-elm-after.js +11 -0
  79. package/lib/checks/keyboard/page-has-elm.js +13 -0
  80. package/lib/checks/keyboard/page-has-heading-one.json +3 -3
  81. package/lib/checks/keyboard/page-has-main.json +2 -2
  82. package/lib/checks/keyboard/page-no-duplicate-after.js +2 -0
  83. package/lib/checks/keyboard/page-no-duplicate-banner.json +2 -2
  84. package/lib/checks/keyboard/page-no-duplicate-contentinfo.json +2 -2
  85. package/lib/checks/keyboard/page-no-duplicate-main.json +2 -2
  86. package/lib/checks/keyboard/page-no-duplicate.js +36 -0
  87. package/lib/checks/keyboard/tabindex.js +6 -0
  88. package/lib/checks/keyboard/tabindex.json +1 -1
  89. package/lib/checks/label/alt-space-value.js +3 -0
  90. package/lib/checks/label/alt-space-value.json +1 -1
  91. package/lib/checks/label/duplicate-img-label.js +22 -0
  92. package/lib/checks/label/duplicate-img-label.json +1 -4
  93. package/lib/checks/label/explicit.js +15 -0
  94. package/lib/checks/label/explicit.json +1 -1
  95. package/lib/checks/label/help-same-as-label.js +23 -0
  96. package/lib/checks/label/help-same-as-label.json +1 -1
  97. package/lib/checks/label/hidden-explicit-label.js +12 -0
  98. package/lib/checks/label/hidden-explicit-label.json +1 -1
  99. package/lib/checks/label/implicit.js +7 -0
  100. package/lib/checks/label/implicit.json +1 -1
  101. package/lib/checks/label/label-content-name-mismatch.js +59 -0
  102. package/lib/checks/label/label-content-name-mismatch.json +1 -1
  103. package/lib/checks/label/multiple-label.js +39 -0
  104. package/lib/checks/label/multiple-label.json +1 -1
  105. package/lib/checks/label/title-only.js +5 -0
  106. package/lib/checks/label/title-only.json +1 -1
  107. package/lib/checks/landmarks/landmark-is-unique-after.js +20 -24
  108. package/lib/checks/landmarks/landmark-is-unique.js +7 -0
  109. package/lib/checks/landmarks/landmark-is-unique.json +2 -2
  110. package/lib/checks/language/has-lang.js +20 -0
  111. package/lib/checks/language/has-lang.json +1 -4
  112. package/lib/checks/language/valid-lang.js +26 -0
  113. package/lib/checks/language/valid-lang.json +1 -4
  114. package/lib/checks/language/xml-lang-mismatch.js +5 -0
  115. package/lib/checks/language/xml-lang-mismatch.json +1 -1
  116. package/lib/checks/lists/dlitem.js +23 -0
  117. package/lib/checks/lists/dlitem.json +1 -1
  118. package/lib/checks/lists/listitem.js +21 -0
  119. package/lib/checks/lists/listitem.json +1 -1
  120. package/lib/checks/lists/only-dlitems.js +42 -0
  121. package/lib/checks/lists/only-dlitems.json +1 -1
  122. package/lib/checks/lists/only-listitems.js +58 -0
  123. package/lib/checks/lists/only-listitems.json +1 -1
  124. package/lib/checks/lists/structured-dlitems.js +22 -0
  125. package/lib/checks/lists/structured-dlitems.json +1 -1
  126. package/lib/checks/media/caption.js +8 -0
  127. package/lib/checks/media/caption.json +1 -1
  128. package/lib/checks/media/description.js +8 -0
  129. package/lib/checks/media/description.json +11 -0
  130. package/lib/checks/media/frame-tested.js +28 -0
  131. package/lib/checks/media/frame-tested.json +1 -1
  132. package/lib/checks/media/no-autoplay-audio.js +93 -0
  133. package/lib/checks/media/no-autoplay-audio.json +1 -1
  134. package/lib/checks/mobile/css-orientation-lock.js +251 -0
  135. package/lib/checks/mobile/css-orientation-lock.json +1 -1
  136. package/lib/checks/mobile/meta-viewport-large.json +1 -1
  137. package/lib/checks/mobile/meta-viewport-scale.js +52 -0
  138. package/lib/checks/mobile/meta-viewport.json +1 -1
  139. package/lib/checks/navigation/header-present.js +4 -0
  140. package/lib/checks/navigation/header-present.json +1 -4
  141. package/lib/checks/navigation/heading-order-after.js +9 -13
  142. package/lib/checks/navigation/heading-order.js +15 -0
  143. package/lib/checks/navigation/heading-order.json +2 -2
  144. package/lib/checks/navigation/identical-links-same-purpose-after.js +65 -71
  145. package/lib/checks/navigation/identical-links-same-purpose.js +31 -0
  146. package/lib/checks/navigation/identical-links-same-purpose.json +2 -2
  147. package/lib/checks/navigation/internal-link-present.js +4 -0
  148. package/lib/checks/navigation/internal-link-present.json +1 -1
  149. package/lib/checks/navigation/landmark.js +3 -0
  150. package/lib/checks/navigation/landmark.json +1 -4
  151. package/lib/checks/navigation/meta-refresh.js +4 -0
  152. package/lib/checks/navigation/meta-refresh.json +1 -1
  153. package/lib/checks/navigation/{p-as-heading-evaluate.js → p-as-heading.js} +42 -47
  154. package/lib/checks/navigation/p-as-heading.json +1 -1
  155. package/lib/checks/navigation/{region-evaluate.js → region.js} +34 -48
  156. package/lib/checks/navigation/region.json +1 -1
  157. package/lib/checks/navigation/skip-link.js +5 -0
  158. package/lib/checks/navigation/skip-link.json +1 -1
  159. package/lib/checks/navigation/unique-frame-title-after.js +8 -12
  160. package/lib/checks/navigation/unique-frame-title.js +6 -0
  161. package/lib/checks/navigation/unique-frame-title.json +2 -2
  162. package/lib/checks/parsing/duplicate-id-active.json +2 -2
  163. package/lib/checks/parsing/duplicate-id-after.js +8 -12
  164. package/lib/checks/parsing/duplicate-id-aria.json +2 -2
  165. package/lib/checks/parsing/duplicate-id.js +17 -0
  166. package/lib/checks/parsing/duplicate-id.json +3 -3
  167. package/lib/checks/shared/aria-label.js +2 -0
  168. package/lib/checks/shared/aria-label.json +1 -1
  169. package/lib/checks/shared/aria-labelledby.js +2 -0
  170. package/lib/checks/shared/aria-labelledby.json +1 -1
  171. package/lib/checks/shared/avoid-inline-spacing.js +18 -0
  172. package/lib/checks/shared/avoid-inline-spacing.json +1 -4
  173. package/lib/checks/shared/button-has-visible-text.js +12 -0
  174. package/lib/checks/shared/button-has-visible-text.json +1 -1
  175. package/lib/checks/shared/doc-has-title.js +2 -0
  176. package/lib/checks/shared/doc-has-title.json +1 -1
  177. package/lib/checks/shared/exists.js +1 -0
  178. package/lib/checks/shared/exists.json +1 -1
  179. package/lib/checks/shared/has-alt.js +6 -0
  180. package/lib/checks/shared/has-alt.json +1 -1
  181. package/lib/checks/shared/has-visible-text.js +1 -0
  182. package/lib/checks/shared/has-visible-text.json +1 -1
  183. package/lib/checks/shared/is-on-screen.js +4 -0
  184. package/lib/checks/shared/is-on-screen.json +1 -1
  185. package/lib/checks/shared/non-empty-alt.js +2 -0
  186. package/lib/checks/shared/non-empty-alt.json +1 -4
  187. package/lib/checks/shared/non-empty-if-present.js +15 -0
  188. package/lib/checks/shared/non-empty-if-present.json +1 -1
  189. package/lib/checks/shared/non-empty-title.js +2 -0
  190. package/lib/checks/shared/non-empty-title.json +1 -4
  191. package/lib/checks/shared/non-empty-value.js +2 -0
  192. package/lib/checks/shared/non-empty-value.json +1 -4
  193. package/lib/checks/shared/role-none.js +1 -0
  194. package/lib/checks/shared/role-none.json +1 -8
  195. package/lib/checks/shared/role-presentation.js +1 -0
  196. package/lib/checks/shared/role-presentation.json +1 -8
  197. package/lib/checks/shared/svg-non-empty-title.js +4 -0
  198. package/lib/checks/shared/svg-non-empty-title.json +1 -1
  199. package/lib/checks/tables/caption-faked.js +10 -0
  200. package/lib/checks/tables/caption-faked.json +1 -1
  201. package/lib/checks/tables/has-caption.js +1 -0
  202. package/lib/checks/tables/has-caption.json +12 -0
  203. package/lib/checks/tables/has-summary.js +1 -0
  204. package/lib/checks/tables/has-summary.json +12 -0
  205. package/lib/checks/tables/has-th.js +31 -0
  206. package/lib/checks/tables/has-th.json +12 -0
  207. package/lib/checks/tables/headers-visible-text.js +30 -0
  208. package/lib/checks/tables/html5-scope.js +5 -0
  209. package/lib/checks/tables/html5-scope.json +1 -1
  210. package/lib/checks/tables/same-caption-summary.js +7 -0
  211. package/lib/checks/tables/same-caption-summary.json +1 -1
  212. package/lib/checks/tables/scope-value.js +5 -0
  213. package/lib/checks/tables/scope-value.json +1 -4
  214. package/lib/checks/tables/td-has-header.js +30 -0
  215. package/lib/checks/tables/td-has-header.json +1 -1
  216. package/lib/checks/tables/td-headers-attr.js +61 -0
  217. package/lib/checks/tables/td-headers-attr.json +1 -1
  218. package/lib/checks/tables/th-has-data-cells.js +76 -0
  219. package/lib/checks/tables/th-has-data-cells.json +1 -1
  220. package/lib/checks/tables/th-single-row-column.js +39 -0
  221. package/lib/checks/visibility/hidden-content.js +21 -0
  222. package/lib/checks/visibility/hidden-content.json +1 -1
  223. package/lib/commons/aria/arialabel-text.js +5 -9
  224. package/lib/commons/aria/arialabelledby-text.js +5 -8
  225. package/lib/commons/aria/attributes.js +45 -0
  226. package/lib/commons/aria/get-element-unallowed-roles.js +10 -16
  227. package/lib/commons/aria/get-owned-virtual.js +4 -7
  228. package/lib/commons/aria/get-role.js +8 -9
  229. package/lib/commons/aria/index.js +2419 -24
  230. package/lib/commons/aria/is-accessible-ref.js +6 -14
  231. package/lib/commons/aria/is-aria-role-allowed-on-element.js +7 -7
  232. package/lib/commons/aria/is-unsupported-role.js +4 -6
  233. package/lib/commons/aria/label-virtual.js +18 -10
  234. package/lib/commons/aria/named-from-contents.js +5 -8
  235. package/lib/commons/aria/roles.js +208 -0
  236. package/lib/commons/aria/validate-attr-value.js +9 -13
  237. package/lib/commons/color/center-point-of-rect.js +4 -5
  238. package/lib/commons/color/{color.js → contrast.js} +71 -3
  239. package/lib/commons/color/element-has-image.js +8 -7
  240. package/lib/commons/color/element-is-distinct.js +3 -3
  241. package/lib/commons/color/get-background-color.js +234 -31
  242. package/lib/commons/color/get-foreground-color.js +8 -14
  243. package/lib/commons/color/get-own-background-color.js +4 -6
  244. package/lib/commons/color/incomplete-data.js +44 -41
  245. package/lib/commons/color/index.js +3 -14
  246. package/lib/commons/dom/{reduce-to-elements-below-floating.js → elements-below-floating.js} +13 -10
  247. package/lib/commons/dom/find-elms-in-context.js +4 -7
  248. package/lib/commons/dom/find-up.js +51 -8
  249. package/lib/commons/dom/get-composed-parent.js +3 -4
  250. package/lib/commons/dom/get-element-by-reference.js +4 -4
  251. package/lib/commons/dom/get-element-coordinates.js +4 -6
  252. package/lib/commons/dom/get-element-stack.js +567 -6
  253. package/lib/commons/dom/get-root-node.js +2 -2
  254. package/lib/commons/dom/get-scroll-offset.js +3 -4
  255. package/lib/commons/dom/get-tabbable-elements.js +4 -5
  256. package/lib/commons/dom/get-viewport-size.js +7 -7
  257. package/lib/commons/dom/has-content-virtual.js +31 -9
  258. package/lib/commons/dom/idrefs.js +12 -13
  259. package/lib/commons/dom/index.js +4 -33
  260. package/lib/commons/dom/is-focusable.js +72 -6
  261. package/lib/commons/dom/is-hidden-with-css.js +5 -8
  262. package/lib/commons/dom/is-html5.js +5 -5
  263. package/lib/commons/dom/is-in-text-block.js +8 -21
  264. package/lib/commons/dom/is-modal-open.js +5 -14
  265. package/lib/commons/dom/is-node.js +3 -5
  266. package/lib/commons/dom/is-offscreen.js +7 -11
  267. package/lib/commons/dom/is-skip-link.js +4 -8
  268. package/lib/commons/dom/is-visible.js +11 -20
  269. package/lib/commons/dom/is-visual-content.js +4 -4
  270. package/lib/commons/dom/shadow-elements-from-point.js +6 -11
  271. package/lib/commons/dom/url-props-from-attribute.js +4 -4
  272. package/lib/commons/dom/visually-contains.js +4 -6
  273. package/lib/commons/dom/visually-overlaps.js +4 -4
  274. package/lib/commons/forms/index.js +3 -6
  275. package/lib/commons/forms/is-aria-combobox.js +4 -6
  276. package/lib/commons/forms/is-aria-listbox.js +4 -6
  277. package/lib/commons/forms/is-aria-range.js +4 -7
  278. package/lib/commons/forms/is-aria-textbox.js +4 -6
  279. package/lib/commons/forms/is-native-select.js +4 -4
  280. package/lib/commons/forms/is-native-textbox.js +3 -4
  281. package/lib/commons/index.js +3 -21
  282. package/lib/commons/matches/attributes.js +5 -12
  283. package/lib/commons/matches/condition.js +3 -4
  284. package/lib/commons/matches/from-definition.js +8 -26
  285. package/lib/commons/matches/from-function.js +4 -6
  286. package/lib/commons/matches/from-primative.js +4 -4
  287. package/lib/commons/matches/index.js +36 -20
  288. package/lib/commons/matches/node-name.js +5 -12
  289. package/lib/commons/matches/properties.js +5 -11
  290. package/lib/commons/table/get-all-cells.js +4 -4
  291. package/lib/commons/table/get-cell-position.js +4 -8
  292. package/lib/commons/table/get-headers.js +8 -14
  293. package/lib/commons/table/get-scope.js +5 -9
  294. package/lib/commons/table/index.js +3 -13
  295. package/lib/commons/table/is-column-header.js +4 -6
  296. package/lib/commons/table/is-data-cell.js +4 -6
  297. package/lib/commons/table/is-data-table.js +8 -14
  298. package/lib/commons/table/is-header.js +4 -8
  299. package/lib/commons/table/is-row-header.js +4 -6
  300. package/lib/commons/table/to-grid.js +5 -4
  301. package/lib/commons/table/traverse.js +72 -70
  302. package/lib/commons/text/accessible-text-virtual.js +31 -22
  303. package/lib/commons/text/form-control-value.js +34 -42
  304. package/lib/commons/text/index.js +3 -27
  305. package/lib/commons/text/is-human-interpretable.js +5 -8
  306. package/lib/commons/text/is-icon-ligature.js +5 -10
  307. package/lib/commons/text/is-valid-autocomplete.js +14 -14
  308. package/lib/commons/text/label-text.js +7 -13
  309. package/lib/commons/text/label-virtual.js +22 -13
  310. package/lib/commons/text/{native-element-type.js → native-element-types.js} +2 -3
  311. package/lib/commons/text/native-text-alternative.js +10 -11
  312. package/lib/commons/text/native-text-methods.js +12 -11
  313. package/lib/commons/text/sanitize.js +4 -4
  314. package/lib/commons/text/subtree-text.js +7 -12
  315. package/lib/commons/text/title-text.js +5 -9
  316. package/lib/commons/text/unicode.js +65 -3
  317. package/lib/commons/text/unsupported.js +3 -3
  318. package/lib/commons/text/visible-text-nodes.js +6 -8
  319. package/lib/commons/text/visible-virtual.js +19 -8
  320. package/lib/commons/utils/index.js +10 -0
  321. package/lib/core/base/audit.js +533 -474
  322. package/lib/core/base/cache.js +29 -26
  323. package/lib/core/base/check-result.js +4 -2
  324. package/lib/core/base/check.js +24 -47
  325. package/lib/core/base/context.js +23 -22
  326. package/lib/core/base/rule-result.js +4 -3
  327. package/lib/core/base/rule.js +56 -89
  328. package/lib/core/base/virtual-node/abstract-virtual-node.js +1 -10
  329. package/lib/core/base/virtual-node/serial-virtual-node.js +6 -8
  330. package/lib/core/base/virtual-node/virtual-node.js +7 -10
  331. package/lib/core/constants.js +69 -61
  332. package/lib/core/imports/index.js +22 -27
  333. package/lib/core/log.js +2 -4
  334. package/lib/core/public/{cleanup.js → cleanup-plugins.js} +2 -4
  335. package/lib/core/public/configure.js +4 -5
  336. package/lib/core/public/get-rules.js +2 -4
  337. package/lib/core/public/load.js +5 -9
  338. package/lib/core/public/plugins.js +4 -4
  339. package/lib/core/public/reporter.js +6 -10
  340. package/lib/core/public/reset.js +2 -2
  341. package/lib/core/public/run-rules.js +3 -2
  342. package/lib/core/public/run-virtual-rule.js +5 -13
  343. package/lib/core/public/run.js +3 -7
  344. package/lib/core/reporters/helpers/failure-summary.js +6 -4
  345. package/lib/core/reporters/helpers/get-environment-data.js +4 -4
  346. package/lib/core/reporters/helpers/incomplete-fallback-msg.js +5 -4
  347. package/lib/core/reporters/helpers/index.js +3 -21
  348. package/lib/core/reporters/helpers/process-aggregate.js +6 -8
  349. package/lib/core/reporters/na.js +7 -7
  350. package/lib/core/reporters/no-passes.js +6 -8
  351. package/lib/core/reporters/raw-env.js +5 -10
  352. package/lib/core/reporters/raw.js +4 -4
  353. package/lib/core/reporters/v1.js +8 -12
  354. package/lib/core/reporters/v2.js +21 -18
  355. package/lib/core/utils/aggregate.js +2 -4
  356. package/lib/core/utils/{aggregate-checks.js → aggregateChecks.js} +13 -19
  357. package/lib/core/utils/aggregateNodeResults.js +61 -0
  358. package/lib/core/utils/{aggregate-result.js → aggregateResult.js} +2 -5
  359. package/lib/core/utils/are-styles-set.js +4 -1
  360. package/lib/core/utils/assert.js +5 -5
  361. package/lib/core/utils/check-helper.js +11 -9
  362. package/lib/core/utils/clone.js +5 -6
  363. package/lib/core/utils/collect-results-from-frames.js +70 -9
  364. package/lib/core/utils/contains.js +3 -5
  365. package/lib/core/utils/css-parser.js +7 -8
  366. package/lib/core/utils/dq-element.js +7 -6
  367. package/lib/core/utils/element-matches.js +3 -3
  368. package/lib/core/utils/escape-selector.js +3 -4
  369. package/lib/core/utils/extend-meta-data.js +4 -7
  370. package/lib/core/utils/finalize-result.js +3 -7
  371. package/lib/core/utils/find-by.js +2 -4
  372. package/lib/core/utils/{get-flattened-tree.js → flattened-tree.js} +19 -10
  373. package/lib/core/utils/get-all-checks.js +3 -4
  374. package/lib/core/utils/get-base-lang.js +2 -4
  375. package/lib/core/utils/get-check-message.js +4 -7
  376. package/lib/core/utils/get-check-option.js +2 -4
  377. package/lib/core/utils/get-friendly-uri-end.js +5 -4
  378. package/lib/core/utils/get-node-attributes.js +4 -4
  379. package/lib/core/utils/get-root-node.js +4 -4
  380. package/lib/core/utils/get-scroll.js +2 -4
  381. package/lib/core/utils/get-selector.js +14 -22
  382. package/lib/core/utils/get-stylesheet-factory.js +2 -4
  383. package/lib/core/utils/get-xpath.js +5 -6
  384. package/lib/core/utils/index.js +5 -69
  385. package/lib/core/utils/inject-style.js +6 -1
  386. package/lib/core/utils/is-hidden.js +7 -10
  387. package/lib/core/utils/is-html-element.js +2 -4
  388. package/lib/core/utils/is-shadow-root.js +4 -4
  389. package/lib/core/utils/is-xhtml.js +3 -4
  390. package/lib/core/utils/matches.js +21 -15
  391. package/lib/core/utils/memoize.js +3 -8
  392. package/lib/core/utils/merge-results.js +10 -16
  393. package/lib/core/utils/node-sorter.js +2 -4
  394. package/lib/core/utils/parse-crossorigin-stylesheet.js +4 -10
  395. package/lib/core/utils/parse-sameorigin-stylesheet.js +3 -7
  396. package/lib/core/utils/parse-stylesheet.js +5 -10
  397. package/lib/core/utils/performance-timer.js +3 -4
  398. package/lib/core/utils/pollyfills.js +8 -5
  399. package/lib/core/utils/preload-cssom.js +31 -27
  400. package/lib/core/utils/preload-media.js +3 -8
  401. package/lib/core/utils/preload.js +12 -18
  402. package/lib/core/utils/process-message.js +4 -7
  403. package/lib/core/utils/publish-metadata.js +13 -16
  404. package/lib/core/utils/{query-selector-all-filter.js → qsa.js} +19 -11
  405. package/lib/core/utils/queue.js +122 -120
  406. package/lib/core/utils/respondable.js +228 -234
  407. package/lib/core/utils/rule-should-run.js +4 -5
  408. package/lib/core/utils/{get-scroll-state.js → scroll-state.js} +20 -5
  409. package/lib/core/utils/select.js +57 -9
  410. package/lib/core/utils/to-array.js +14 -3
  411. package/lib/core/utils/token-list.js +4 -4
  412. package/lib/core/utils/uuid.js +208 -208
  413. package/lib/core/utils/valid-input-type.js +4 -4
  414. package/lib/core/utils/valid-langs.js +3 -4
  415. package/lib/rules/aria-allowed-attr-matches.js +7 -13
  416. package/lib/rules/aria-allowed-attr.json +1 -1
  417. package/lib/rules/aria-allowed-role-matches.js +7 -13
  418. package/lib/rules/aria-allowed-role.json +1 -1
  419. package/lib/rules/aria-dpub-role-fallback-matches.js +10 -0
  420. package/lib/rules/aria-dpub-role-fallback.json +14 -0
  421. package/lib/rules/aria-form-field-name-matches.js +44 -49
  422. package/lib/rules/aria-has-attr-matches.js +7 -13
  423. package/lib/rules/aria-hidden-focus-matches.js +2 -6
  424. package/lib/rules/aria-hidden-focus.json +1 -1
  425. package/lib/rules/aria-input-field-name.json +2 -2
  426. package/lib/rules/aria-roles.json +1 -1
  427. package/lib/rules/aria-toggle-field-name.json +1 -1
  428. package/lib/rules/aria-valid-attr-value.json +1 -1
  429. package/lib/rules/aria-valid-attr.json +1 -1
  430. package/lib/rules/autocomplete-matches.js +39 -48
  431. package/lib/rules/autocomplete-valid.json +1 -1
  432. package/lib/rules/bypass-matches.js +1 -5
  433. package/lib/rules/bypass.json +1 -1
  434. package/lib/rules/checkboxgroup.json +13 -0
  435. package/lib/rules/color-contrast-matches.js +130 -139
  436. package/lib/rules/color-contrast.json +1 -1
  437. package/lib/rules/data-table-large-matches.js +9 -15
  438. package/lib/rules/data-table-matches.js +1 -7
  439. package/lib/rules/definition-list.json +1 -1
  440. package/lib/rules/dlitem.json +1 -1
  441. package/lib/rules/document-title.json +1 -1
  442. package/lib/rules/duplicate-id-active-matches.js +7 -14
  443. package/lib/rules/duplicate-id-active.json +1 -1
  444. package/lib/rules/duplicate-id-aria-matches.js +1 -7
  445. package/lib/rules/duplicate-id-aria.json +1 -1
  446. package/lib/rules/duplicate-id-misc-matches.js +10 -16
  447. package/lib/rules/duplicate-id.json +1 -1
  448. package/lib/rules/empty-heading.json +2 -2
  449. package/lib/rules/focus-order-semantics.json +1 -1
  450. package/lib/rules/form-field-multiple-labels.json +1 -1
  451. package/lib/rules/frame-title-has-text.js +2 -0
  452. package/lib/rules/frame-title-unique.json +1 -1
  453. package/lib/rules/heading-matches.js +13 -17
  454. package/lib/rules/heading-order.json +1 -1
  455. package/lib/rules/html-has-lang.json +1 -1
  456. package/lib/rules/html-namespace-matches.js +1 -5
  457. package/lib/rules/html-xml-lang-mismatch.json +1 -1
  458. package/lib/rules/identical-links-same-purpose-matches.js +9 -14
  459. package/lib/rules/identical-links-same-purpose.json +1 -1
  460. package/lib/rules/inserted-into-focus-order-matches.js +1 -7
  461. package/lib/rules/label-content-name-mismatch-matches.js +38 -49
  462. package/lib/rules/label-content-name-mismatch.json +1 -1
  463. package/lib/rules/label-matches.js +9 -13
  464. package/lib/rules/label-title-only.json +1 -1
  465. package/lib/rules/label.json +1 -1
  466. package/lib/rules/landmark-banner-is-top-level.json +1 -1
  467. package/lib/rules/landmark-contentinfo-is-top-level.json +1 -1
  468. package/lib/rules/landmark-has-body-context.js +8 -0
  469. package/lib/rules/landmark-unique-matches.js +33 -41
  470. package/lib/rules/landmark-unique.json +1 -1
  471. package/lib/rules/layout-table-matches.js +8 -0
  472. package/lib/rules/layout-table.json +14 -0
  473. package/lib/rules/link-in-text-block-matches.js +11 -18
  474. package/lib/rules/link-in-text-block.json +1 -1
  475. package/lib/rules/list.json +1 -1
  476. package/lib/rules/listitem.json +1 -1
  477. package/lib/rules/no-autoplay-audio-matches.js +15 -19
  478. package/lib/rules/no-autoplay-audio.json +1 -1
  479. package/lib/rules/no-empty-role-matches.js +6 -10
  480. package/lib/rules/no-role-matches.js +1 -5
  481. package/lib/rules/not-html-matches.js +1 -5
  482. package/lib/rules/p-as-heading-matches.js +14 -18
  483. package/lib/rules/p-as-heading.json +1 -1
  484. package/lib/rules/radiogroup.json +13 -0
  485. package/lib/rules/role-img-alt.json +1 -1
  486. package/lib/rules/scrollable-region-focusable-matches.js +26 -31
  487. package/lib/rules/scrollable-region-focusable.json +1 -1
  488. package/lib/rules/skip-link-matches.js +1 -7
  489. package/lib/rules/skip-link.json +1 -1
  490. package/lib/rules/svg-img-alt.json +1 -1
  491. package/lib/rules/svg-namespace-matches.js +1 -5
  492. package/lib/rules/table-fake-caption.json +1 -1
  493. package/lib/rules/td-has-header.json +1 -1
  494. package/lib/rules/th-has-data-cells.json +1 -1
  495. package/lib/rules/valid-lang.json +1 -1
  496. package/lib/rules/video-description.json +21 -0
  497. package/lib/rules/window-is-top.js +3 -0
  498. package/lib/rules/xml-lang-mismatch-matches.js +12 -17
  499. package/locales/da.json +48 -0
  500. package/locales/de.json +49 -0
  501. package/locales/es.json +48 -0
  502. package/locales/fr.json +60 -1
  503. package/locales/ja.json +59 -0
  504. package/locales/ko.json +48 -0
  505. package/locales/pt_BR.json +59 -0
  506. package/package.json +2 -5
  507. package/sri-history.json +1 -5
  508. package/lib/checks/aria/abstractrole-evaluate.js +0 -17
  509. package/lib/checks/aria/aria-allowed-attr-evaluate.js +0 -41
  510. package/lib/checks/aria/aria-allowed-role-evaluate.js +0 -31
  511. package/lib/checks/aria/aria-errormessage-evaluate.js +0 -39
  512. package/lib/checks/aria/aria-hidden-body-evaluate.js +0 -5
  513. package/lib/checks/aria/aria-required-attr-evaluate.js +0 -70
  514. package/lib/checks/aria/aria-required-children-evaluate.js +0 -229
  515. package/lib/checks/aria/aria-required-parent-evaluate.js +0 -91
  516. package/lib/checks/aria/aria-roledescription-evaluate.js +0 -18
  517. package/lib/checks/aria/aria-unsupported-attr-evaluate.js +0 -46
  518. package/lib/checks/aria/aria-valid-attr-evaluate.js +0 -32
  519. package/lib/checks/aria/aria-valid-attr-value-evaluate.js +0 -87
  520. package/lib/checks/aria/fallbackrole-evaluate.js +0 -7
  521. package/lib/checks/aria/has-widget-role-evaluate.js +0 -12
  522. package/lib/checks/aria/invalidrole-evaluate.js +0 -21
  523. package/lib/checks/aria/no-implicit-explicit-label-evaluate.js +0 -26
  524. package/lib/checks/aria/unsupportedrole-evaluate.js +0 -7
  525. package/lib/checks/color/color-contrast-evaluate.js +0 -102
  526. package/lib/checks/color/link-in-text-block-evaluate.js +0 -94
  527. package/lib/checks/forms/autocomplete-appropriate-evaluate.js +0 -74
  528. package/lib/checks/forms/autocomplete-valid-evaluate.js +0 -8
  529. package/lib/checks/generic/README.md +0 -13
  530. package/lib/checks/generic/attr-non-space-content-evaluate.js +0 -14
  531. package/lib/checks/generic/has-descendant-after.js +0 -15
  532. package/lib/checks/generic/has-descendant-evaluate.js +0 -20
  533. package/lib/checks/generic/has-text-content-evaluate.js +0 -7
  534. package/lib/checks/generic/matches-definition-evaluate.js +0 -7
  535. package/lib/checks/generic/page-no-duplicate-after.js +0 -6
  536. package/lib/checks/generic/page-no-duplicate-evaluate.js +0 -42
  537. package/lib/checks/keyboard/accesskeys-evaluate.js +0 -11
  538. package/lib/checks/keyboard/focusable-content-evaluate.js +0 -20
  539. package/lib/checks/keyboard/focusable-disabled-evaluate.js +0 -36
  540. package/lib/checks/keyboard/focusable-element-evaluate.js +0 -47
  541. package/lib/checks/keyboard/focusable-modal-open-evaluate.js +0 -20
  542. package/lib/checks/keyboard/focusable-no-name-evaluate.js +0 -13
  543. package/lib/checks/keyboard/focusable-not-tabbable-evaluate.js +0 -36
  544. package/lib/checks/keyboard/landmark-is-top-level-evaluate.js +0 -25
  545. package/lib/checks/keyboard/tabindex-evaluate.js +0 -10
  546. package/lib/checks/label/alt-space-value-evaluate.js +0 -7
  547. package/lib/checks/label/duplicate-img-label-evaluate.js +0 -23
  548. package/lib/checks/label/explicit-evaluate.js +0 -23
  549. package/lib/checks/label/help-same-as-label-evaluate.js +0 -28
  550. package/lib/checks/label/hidden-explicit-label-evaluate.js +0 -20
  551. package/lib/checks/label/implicit-evaluate.js +0 -12
  552. package/lib/checks/label/label-content-name-mismatch-evaluate.js +0 -71
  553. package/lib/checks/label/multiple-label-evaluate.js +0 -44
  554. package/lib/checks/label/title-only-evaluate.js +0 -11
  555. package/lib/checks/landmarks/landmark-is-unique-evaluate.js +0 -14
  556. package/lib/checks/language/has-lang-evaluate.js +0 -37
  557. package/lib/checks/language/valid-lang-evaluate.js +0 -30
  558. package/lib/checks/language/xml-lang-mismatch-evaluate.js +0 -10
  559. package/lib/checks/lists/dlitem-evaluate.js +0 -30
  560. package/lib/checks/lists/listitem-evaluate.js +0 -28
  561. package/lib/checks/lists/only-dlitems-evaluate.js +0 -51
  562. package/lib/checks/lists/only-listitems-evaluate.js +0 -63
  563. package/lib/checks/lists/structured-dlitems-evaluate.js +0 -26
  564. package/lib/checks/media/caption-evaluate.js +0 -14
  565. package/lib/checks/media/frame-tested-evaluate.js +0 -28
  566. package/lib/checks/media/no-autoplay-audio-evaluate.js +0 -97
  567. package/lib/checks/mobile/css-orientation-lock-evaluate.js +0 -254
  568. package/lib/checks/mobile/meta-viewport-scale-evaluate.js +0 -59
  569. package/lib/checks/navigation/heading-order-evaluate.js +0 -19
  570. package/lib/checks/navigation/identical-links-same-purpose-evaluate.js +0 -35
  571. package/lib/checks/navigation/internal-link-present-evaluate.js +0 -10
  572. package/lib/checks/navigation/meta-refresh-evaluate.js +0 -8
  573. package/lib/checks/navigation/skip-link-evaluate.js +0 -11
  574. package/lib/checks/navigation/unique-frame-title-evaluate.js +0 -11
  575. package/lib/checks/parsing/duplicate-id-evaluate.js +0 -24
  576. package/lib/checks/shared/aria-label-evaluate.js +0 -8
  577. package/lib/checks/shared/aria-labelledby-evaluate.js +0 -8
  578. package/lib/checks/shared/avoid-inline-spacing-evaluate.js +0 -16
  579. package/lib/checks/shared/doc-has-title-evaluate.js +0 -8
  580. package/lib/checks/shared/exists-evaluate.js +0 -5
  581. package/lib/checks/shared/has-accessible-text-evaluate.js +0 -7
  582. package/lib/checks/shared/has-accessible-text.json +0 -11
  583. package/lib/checks/shared/has-alt-evaluate.js +0 -10
  584. package/lib/checks/shared/is-on-screen-evaluate.js +0 -8
  585. package/lib/checks/shared/non-empty-if-present-evaluate.js +0 -19
  586. package/lib/checks/shared/svg-non-empty-title-evaluate.js +0 -8
  587. package/lib/checks/tables/caption-faked-evaluate.js +0 -16
  588. package/lib/checks/tables/html5-scope-evaluate.js +0 -11
  589. package/lib/checks/tables/same-caption-summary-evaluate.js +0 -12
  590. package/lib/checks/tables/scope-value-evaluate.js +0 -7
  591. package/lib/checks/tables/td-has-header-evaluate.js +0 -33
  592. package/lib/checks/tables/td-headers-attr-evaluate.js +0 -67
  593. package/lib/checks/tables/th-has-data-cells-evaluate.js +0 -82
  594. package/lib/checks/visibility/hidden-content-evaluate.js +0 -34
  595. package/lib/commons/aria/allowed-attr.js +0 -20
  596. package/lib/commons/aria/get-role-type.js +0 -16
  597. package/lib/commons/aria/get-roles-by-type.js +0 -17
  598. package/lib/commons/aria/get-roles-with-name-from-contents.js +0 -19
  599. package/lib/commons/aria/implicit-nodes.js +0 -24
  600. package/lib/commons/aria/implicit-role.js +0 -45
  601. package/lib/commons/aria/is-valid-role.js +0 -21
  602. package/lib/commons/aria/label.js +0 -17
  603. package/lib/commons/aria/lookup-table.js +0 -2583
  604. package/lib/commons/aria/required-attr.js +0 -17
  605. package/lib/commons/aria/required-context.js +0 -23
  606. package/lib/commons/aria/required-owned.js +0 -23
  607. package/lib/commons/aria/validate-attr.js +0 -16
  608. package/lib/commons/color/filtered-rect-stack.js +0 -51
  609. package/lib/commons/color/flatten-colors.js +0 -22
  610. package/lib/commons/color/get-background-stack.js +0 -130
  611. package/lib/commons/color/get-contrast.js +0 -27
  612. package/lib/commons/color/get-rect-stack.js +0 -32
  613. package/lib/commons/color/has-valid-contrast-ratio.js +0 -28
  614. package/lib/commons/dom/find-up-virtual.js +0 -52
  615. package/lib/commons/dom/focus-disabled.js +0 -14
  616. package/lib/commons/dom/get-rect-stack.js +0 -522
  617. package/lib/commons/dom/get-text-element-stack.js +0 -57
  618. package/lib/commons/dom/has-content.js +0 -21
  619. package/lib/commons/dom/inserted-into-focus-order.js +0 -24
  620. package/lib/commons/dom/is-natively-focusable.js +0 -40
  621. package/lib/commons/dom/is-opaque.js +0 -16
  622. package/lib/commons/matches/matches.js +0 -39
  623. package/lib/commons/text/accessible-text.js +0 -19
  624. package/lib/commons/text/has-unicode.js +0 -38
  625. package/lib/commons/text/label.js +0 -19
  626. package/lib/commons/text/remove-unicode.js +0 -38
  627. package/lib/commons/text/visible.js +0 -18
  628. package/lib/core/base/metadata-function-map.js +0 -325
  629. package/lib/core/core.js +0 -88
  630. package/lib/core/utils/aggregate-node-results.js +0 -65
  631. package/lib/core/utils/closest.js +0 -24
  632. package/lib/core/utils/get-node-from-tree.js +0 -13
  633. package/lib/core/utils/is-node-in-context.js +0 -46
  634. package/lib/core/utils/query-selector-all.js +0 -15
  635. package/lib/core/utils/send-command-to-frame.js +0 -65
  636. package/lib/core/utils/set-scroll-state.js +0 -20
  637. package/lib/core/utils/unique-array.js +0 -13
  638. package/lib/rules/frame-title-has-text-matches.js +0 -8
  639. package/lib/rules/landmark-has-body-context-matches.js +0 -13
  640. package/lib/rules/window-is-top-matches.js +0 -7
  641. 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' | 'wcag21a' | 'wcag21aa';
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;