govuk_publishing_components 30.3.0 → 30.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (661) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +63 -51
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-link-tracker.js +25 -11
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +11 -10
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/init-ga4.js +26 -0
  6. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4.js +1 -3
  7. data/app/assets/stylesheets/component_guide/application.scss +4 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +7 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +60 -11
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -4
  11. data/app/views/govuk_publishing_components/component_guide/show.html.erb +31 -6
  12. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +6 -2
  13. data/config/locales/en.yml +4 -0
  14. data/lib/govuk_publishing_components/version.rb +1 -1
  15. data/node_modules/axe-core/README.md +83 -53
  16. data/node_modules/axe-core/axe.d.ts +403 -224
  17. data/node_modules/axe-core/axe.js +23281 -21919
  18. data/node_modules/axe-core/axe.min.js +3 -3
  19. data/node_modules/axe-core/locales/da.json +795 -780
  20. data/node_modules/axe-core/locales/de.json +932 -621
  21. data/node_modules/axe-core/locales/es.json +786 -771
  22. data/node_modules/axe-core/locales/eu.json +787 -0
  23. data/node_modules/axe-core/locales/fr.json +982 -840
  24. data/node_modules/axe-core/locales/ja.json +988 -880
  25. data/node_modules/axe-core/locales/ko.json +999 -775
  26. data/node_modules/axe-core/locales/nl.json +46 -34
  27. data/node_modules/axe-core/locales/pl.json +965 -0
  28. data/node_modules/axe-core/locales/pt_BR.json +966 -880
  29. data/node_modules/axe-core/package.json +189 -145
  30. data/node_modules/axe-core/sri-history.json +312 -192
  31. data/node_modules/govuk-frontend/govuk/all.js +64 -44
  32. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +1 -1
  33. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +3 -13
  34. data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +12 -12
  35. data/node_modules/govuk-frontend/govuk/components/accordion/template.njk +5 -1
  36. data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +1 -1
  37. data/node_modules/govuk-frontend/govuk/components/details/details.js +8 -20
  38. data/node_modules/govuk-frontend/govuk/components/details/macro-options.json +6 -0
  39. data/node_modules/govuk-frontend/govuk/components/details/template.njk +1 -1
  40. data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +9 -0
  41. data/node_modules/govuk-frontend/govuk/components/error-summary/macro-options.json +6 -0
  42. data/node_modules/govuk-frontend/govuk/components/error-summary/template.njk +2 -2
  43. data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +59 -20
  44. data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +40 -0
  45. data/node_modules/govuk-frontend/govuk/components/footer/template.njk +17 -7
  46. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +14 -21
  47. data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +11 -11
  48. data/node_modules/govuk-frontend/govuk/components/header/header.js +53 -11
  49. data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +2 -2
  50. data/node_modules/govuk-frontend/govuk/components/header/template.njk +1 -1
  51. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +9 -10
  52. data/node_modules/govuk-frontend/govuk/components/inset-text/macro-options.json +6 -0
  53. data/node_modules/govuk-frontend/govuk/components/inset-text/template.njk +1 -1
  54. data/node_modules/govuk-frontend/govuk/components/notification-banner/macro-options.json +6 -0
  55. data/node_modules/govuk-frontend/govuk/components/notification-banner/template.njk +2 -2
  56. data/node_modules/govuk-frontend/govuk/components/panel/macro-options.json +6 -0
  57. data/node_modules/govuk-frontend/govuk/components/panel/template.njk +2 -2
  58. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +6 -0
  59. data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +15 -1
  60. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +37 -10
  61. data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +69 -4
  62. data/node_modules/govuk-frontend/govuk/components/summary-list/template.njk +3 -3
  63. data/node_modules/govuk-frontend/govuk/components/tabs/fixtures.json +13 -13
  64. data/node_modules/govuk-frontend/govuk/components/tabs/template.njk +5 -1
  65. data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +14 -7
  66. data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +56 -12
  67. data/node_modules/govuk-frontend/govuk/settings/_spacing.scss +4 -8
  68. data/node_modules/govuk-frontend/govuk/template.njk +5 -5
  69. data/node_modules/govuk-frontend/govuk-esm/components/accordion/accordion.mjs +3 -13
  70. data/node_modules/govuk-frontend/govuk-esm/components/details/details.mjs +8 -20
  71. data/node_modules/govuk-frontend/govuk-esm/components/header/header.mjs +53 -11
  72. data/node_modules/govuk-frontend/package.json +1 -1
  73. data/node_modules/sortablejs/README.md +828 -815
  74. data/node_modules/sortablejs/Sortable.js +186 -113
  75. data/node_modules/sortablejs/Sortable.min.js +2 -2
  76. data/node_modules/sortablejs/modular/sortable.complete.esm.js +184 -111
  77. data/node_modules/sortablejs/modular/sortable.core.esm.js +184 -111
  78. data/node_modules/sortablejs/modular/sortable.esm.js +184 -111
  79. data/node_modules/sortablejs/package.json +3 -3
  80. metadata +6 -584
  81. data/node_modules/axe-core/CHANGELOG.md +0 -1053
  82. data/node_modules/axe-core/CONTRIBUTING.md +0 -187
  83. data/node_modules/axe-core/bower.json +0 -40
  84. data/node_modules/axe-core/doc/API.md +0 -889
  85. data/node_modules/axe-core/doc/accessibility-supported.md +0 -33
  86. data/node_modules/axe-core/doc/act-rules-format.md +0 -37
  87. data/node_modules/axe-core/doc/aria-supported.md +0 -13
  88. data/node_modules/axe-core/doc/backwards-compatibility-doc.md +0 -94
  89. data/node_modules/axe-core/doc/check-message-template.md +0 -124
  90. data/node_modules/axe-core/doc/code-submission-guidelines.md +0 -178
  91. data/node_modules/axe-core/doc/developer-guide.md +0 -514
  92. data/node_modules/axe-core/doc/examples/chrome-debugging-protocol/README.md +0 -13
  93. data/node_modules/axe-core/doc/examples/chrome-debugging-protocol/axe-cdp.js +0 -81
  94. data/node_modules/axe-core/doc/examples/chrome-debugging-protocol/package.json +0 -11
  95. data/node_modules/axe-core/doc/examples/html-handlebars.md +0 -164
  96. data/node_modules/axe-core/doc/examples/jasmine/README.md +0 -35
  97. data/node_modules/axe-core/doc/examples/jasmine/karma.conf.js +0 -29
  98. data/node_modules/axe-core/doc/examples/jasmine/package.json +0 -21
  99. data/node_modules/axe-core/doc/examples/jasmine/spec/a11y.js +0 -36
  100. data/node_modules/axe-core/doc/examples/jest_react/README.md +0 -41
  101. data/node_modules/axe-core/doc/examples/jest_react/link.js +0 -7
  102. data/node_modules/axe-core/doc/examples/jest_react/link.test.js +0 -24
  103. data/node_modules/axe-core/doc/examples/jest_react/package.json +0 -28
  104. data/node_modules/axe-core/doc/examples/jest_react/test-helpers.js +0 -21
  105. data/node_modules/axe-core/doc/examples/jsdom/package.json +0 -15
  106. data/node_modules/axe-core/doc/examples/mocha/README.md +0 -35
  107. data/node_modules/axe-core/doc/examples/mocha/karma.conf.js +0 -29
  108. data/node_modules/axe-core/doc/examples/mocha/package.json +0 -22
  109. data/node_modules/axe-core/doc/examples/phantomjs/README.md +0 -17
  110. data/node_modules/axe-core/doc/examples/phantomjs/axe-phantom.js +0 -53
  111. data/node_modules/axe-core/doc/examples/phantomjs/package.json +0 -19
  112. data/node_modules/axe-core/doc/examples/puppeteer/README.md +0 -12
  113. data/node_modules/axe-core/doc/examples/puppeteer/axe-puppeteer.js +0 -60
  114. data/node_modules/axe-core/doc/examples/puppeteer/package.json +0 -13
  115. data/node_modules/axe-core/doc/examples/qunit/README.md +0 -37
  116. data/node_modules/axe-core/doc/examples/qunit/package.json +0 -21
  117. data/node_modules/axe-core/doc/examples/test-examples.js +0 -32
  118. data/node_modules/axe-core/doc/plugins.md +0 -123
  119. data/node_modules/axe-core/doc/projects.md +0 -48
  120. data/node_modules/axe-core/doc/rule-descriptions.md +0 -129
  121. data/node_modules/axe-core/doc/rule-development.md +0 -123
  122. data/node_modules/axe-core/doc/rule-proposal.md +0 -106
  123. data/node_modules/axe-core/lib/checks/aria/abstractrole.js +0 -10
  124. data/node_modules/axe-core/lib/checks/aria/abstractrole.json +0 -14
  125. data/node_modules/axe-core/lib/checks/aria/allowed-attr.js +0 -39
  126. data/node_modules/axe-core/lib/checks/aria/allowed-attr.json +0 -14
  127. data/node_modules/axe-core/lib/checks/aria/aria-allowed-role.js +0 -28
  128. data/node_modules/axe-core/lib/checks/aria/aria-allowed-role.json +0 -22
  129. data/node_modules/axe-core/lib/checks/aria/aria-hidden-body.js +0 -1
  130. data/node_modules/axe-core/lib/checks/aria/aria-hidden-body.json +0 -11
  131. data/node_modules/axe-core/lib/checks/aria/aria-roledescription.js +0 -14
  132. data/node_modules/axe-core/lib/checks/aria/aria-roledescription.json +0 -23
  133. data/node_modules/axe-core/lib/checks/aria/errormessage.js +0 -33
  134. data/node_modules/axe-core/lib/checks/aria/errormessage.json +0 -14
  135. data/node_modules/axe-core/lib/checks/aria/fallbackrole.js +0 -1
  136. data/node_modules/axe-core/lib/checks/aria/fallbackrole.json +0 -11
  137. data/node_modules/axe-core/lib/checks/aria/has-widget-role.js +0 -6
  138. data/node_modules/axe-core/lib/checks/aria/has-widget-role.json +0 -12
  139. data/node_modules/axe-core/lib/checks/aria/implicit-role-fallback.js +0 -6
  140. data/node_modules/axe-core/lib/checks/aria/implicit-role-fallback.json +0 -12
  141. data/node_modules/axe-core/lib/checks/aria/invalidrole.js +0 -17
  142. data/node_modules/axe-core/lib/checks/aria/invalidrole.json +0 -14
  143. data/node_modules/axe-core/lib/checks/aria/no-implicit-explicit-label.js +0 -21
  144. data/node_modules/axe-core/lib/checks/aria/no-implicit-explicit-label.json +0 -11
  145. data/node_modules/axe-core/lib/checks/aria/required-attr.js +0 -53
  146. data/node_modules/axe-core/lib/checks/aria/required-attr.json +0 -14
  147. data/node_modules/axe-core/lib/checks/aria/required-children.js +0 -154
  148. data/node_modules/axe-core/lib/checks/aria/required-children.json +0 -32
  149. data/node_modules/axe-core/lib/checks/aria/required-parent.js +0 -87
  150. data/node_modules/axe-core/lib/checks/aria/required-parent.json +0 -14
  151. data/node_modules/axe-core/lib/checks/aria/unsupportedattr.js +0 -39
  152. data/node_modules/axe-core/lib/checks/aria/unsupportedattr.json +0 -11
  153. data/node_modules/axe-core/lib/checks/aria/unsupportedrole.js +0 -1
  154. data/node_modules/axe-core/lib/checks/aria/unsupportedrole.json +0 -11
  155. data/node_modules/axe-core/lib/checks/aria/valid-attr-value.js +0 -80
  156. data/node_modules/axe-core/lib/checks/aria/valid-attr-value.json +0 -19
  157. data/node_modules/axe-core/lib/checks/aria/valid-attr.js +0 -25
  158. data/node_modules/axe-core/lib/checks/aria/valid-attr.json +0 -15
  159. data/node_modules/axe-core/lib/checks/aria/valid-scrollable-semantics.js +0 -62
  160. data/node_modules/axe-core/lib/checks/aria/valid-scrollable-semantics.json +0 -12
  161. data/node_modules/axe-core/lib/checks/color/color-contrast.js +0 -86
  162. data/node_modules/axe-core/lib/checks/color/color-contrast.json +0 -30
  163. data/node_modules/axe-core/lib/checks/color/link-in-text-block.js +0 -85
  164. data/node_modules/axe-core/lib/checks/color/link-in-text-block.json +0 -19
  165. data/node_modules/axe-core/lib/checks/forms/autocomplete-appropriate.js +0 -67
  166. data/node_modules/axe-core/lib/checks/forms/autocomplete-appropriate.json +0 -11
  167. data/node_modules/axe-core/lib/checks/forms/autocomplete-valid.js +0 -2
  168. data/node_modules/axe-core/lib/checks/forms/autocomplete-valid.json +0 -11
  169. data/node_modules/axe-core/lib/checks/forms/fieldset-after.js +0 -25
  170. data/node_modules/axe-core/lib/checks/forms/fieldset.js +0 -109
  171. data/node_modules/axe-core/lib/checks/forms/fieldset.json +0 -20
  172. data/node_modules/axe-core/lib/checks/forms/group-labelledby-after.js +0 -16
  173. data/node_modules/axe-core/lib/checks/forms/group-labelledby.js +0 -66
  174. data/node_modules/axe-core/lib/checks/forms/group-labelledby.json +0 -17
  175. data/node_modules/axe-core/lib/checks/keyboard/accesskeys-after.js +0 -19
  176. data/node_modules/axe-core/lib/checks/keyboard/accesskeys.js +0 -5
  177. data/node_modules/axe-core/lib/checks/keyboard/accesskeys.json +0 -12
  178. data/node_modules/axe-core/lib/checks/keyboard/focusable-content.js +0 -16
  179. data/node_modules/axe-core/lib/checks/keyboard/focusable-content.json +0 -11
  180. data/node_modules/axe-core/lib/checks/keyboard/focusable-disabled.js +0 -30
  181. data/node_modules/axe-core/lib/checks/keyboard/focusable-disabled.json +0 -11
  182. data/node_modules/axe-core/lib/checks/keyboard/focusable-element.js +0 -12
  183. data/node_modules/axe-core/lib/checks/keyboard/focusable-element.json +0 -11
  184. data/node_modules/axe-core/lib/checks/keyboard/focusable-modal-open.js +0 -14
  185. data/node_modules/axe-core/lib/checks/keyboard/focusable-modal-open.json +0 -11
  186. data/node_modules/axe-core/lib/checks/keyboard/focusable-no-name.js +0 -6
  187. data/node_modules/axe-core/lib/checks/keyboard/focusable-no-name.json +0 -11
  188. data/node_modules/axe-core/lib/checks/keyboard/focusable-not-tabbable.js +0 -30
  189. data/node_modules/axe-core/lib/checks/keyboard/focusable-not-tabbable.json +0 -11
  190. data/node_modules/axe-core/lib/checks/keyboard/landmark-is-top-level.js +0 -18
  191. data/node_modules/axe-core/lib/checks/keyboard/landmark-is-top-level.json +0 -11
  192. data/node_modules/axe-core/lib/checks/keyboard/page-has-elm-after.js +0 -11
  193. data/node_modules/axe-core/lib/checks/keyboard/page-has-elm.js +0 -13
  194. data/node_modules/axe-core/lib/checks/keyboard/page-has-heading-one.json +0 -15
  195. data/node_modules/axe-core/lib/checks/keyboard/page-has-main.json +0 -15
  196. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate-after.js +0 -2
  197. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate-banner.json +0 -16
  198. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate-contentinfo.json +0 -16
  199. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate-main.json +0 -15
  200. data/node_modules/axe-core/lib/checks/keyboard/page-no-duplicate.js +0 -36
  201. data/node_modules/axe-core/lib/checks/keyboard/tabindex.js +0 -6
  202. data/node_modules/axe-core/lib/checks/keyboard/tabindex.json +0 -11
  203. data/node_modules/axe-core/lib/checks/label/alt-space-value.js +0 -3
  204. data/node_modules/axe-core/lib/checks/label/alt-space-value.json +0 -11
  205. data/node_modules/axe-core/lib/checks/label/duplicate-img-label.js +0 -22
  206. data/node_modules/axe-core/lib/checks/label/duplicate-img-label.json +0 -11
  207. data/node_modules/axe-core/lib/checks/label/explicit.js +0 -15
  208. data/node_modules/axe-core/lib/checks/label/explicit.json +0 -11
  209. data/node_modules/axe-core/lib/checks/label/help-same-as-label.js +0 -23
  210. data/node_modules/axe-core/lib/checks/label/help-same-as-label.json +0 -12
  211. data/node_modules/axe-core/lib/checks/label/hidden-explicit-label.js +0 -12
  212. data/node_modules/axe-core/lib/checks/label/hidden-explicit-label.json +0 -11
  213. data/node_modules/axe-core/lib/checks/label/implicit.js +0 -7
  214. data/node_modules/axe-core/lib/checks/label/implicit.json +0 -11
  215. data/node_modules/axe-core/lib/checks/label/label-content-name-mismatch.js +0 -59
  216. data/node_modules/axe-core/lib/checks/label/label-content-name-mismatch.json +0 -15
  217. data/node_modules/axe-core/lib/checks/label/multiple-label.js +0 -39
  218. data/node_modules/axe-core/lib/checks/label/multiple-label.json +0 -11
  219. data/node_modules/axe-core/lib/checks/label/title-only.js +0 -5
  220. data/node_modules/axe-core/lib/checks/label/title-only.json +0 -11
  221. data/node_modules/axe-core/lib/checks/landmarks/landmark-is-unique-after.js +0 -23
  222. data/node_modules/axe-core/lib/checks/landmarks/landmark-is-unique.js +0 -7
  223. data/node_modules/axe-core/lib/checks/landmarks/landmark-is-unique.json +0 -12
  224. data/node_modules/axe-core/lib/checks/language/has-lang.js +0 -20
  225. data/node_modules/axe-core/lib/checks/language/has-lang.json +0 -14
  226. data/node_modules/axe-core/lib/checks/language/valid-lang.js +0 -26
  227. data/node_modules/axe-core/lib/checks/language/valid-lang.json +0 -11
  228. data/node_modules/axe-core/lib/checks/language/xml-lang-mismatch.js +0 -5
  229. data/node_modules/axe-core/lib/checks/language/xml-lang-mismatch.json +0 -11
  230. data/node_modules/axe-core/lib/checks/lists/dlitem.js +0 -23
  231. data/node_modules/axe-core/lib/checks/lists/dlitem.json +0 -11
  232. data/node_modules/axe-core/lib/checks/lists/listitem.js +0 -21
  233. data/node_modules/axe-core/lib/checks/lists/listitem.json +0 -14
  234. data/node_modules/axe-core/lib/checks/lists/only-dlitems.js +0 -42
  235. data/node_modules/axe-core/lib/checks/lists/only-dlitems.json +0 -11
  236. data/node_modules/axe-core/lib/checks/lists/only-listitems.js +0 -58
  237. data/node_modules/axe-core/lib/checks/lists/only-listitems.json +0 -14
  238. data/node_modules/axe-core/lib/checks/lists/structured-dlitems.js +0 -22
  239. data/node_modules/axe-core/lib/checks/lists/structured-dlitems.json +0 -11
  240. data/node_modules/axe-core/lib/checks/media/caption.js +0 -8
  241. data/node_modules/axe-core/lib/checks/media/caption.json +0 -11
  242. data/node_modules/axe-core/lib/checks/media/description.js +0 -8
  243. data/node_modules/axe-core/lib/checks/media/description.json +0 -11
  244. data/node_modules/axe-core/lib/checks/media/frame-tested.js +0 -28
  245. data/node_modules/axe-core/lib/checks/media/frame-tested.json +0 -15
  246. data/node_modules/axe-core/lib/checks/media/no-autoplay-audio.js +0 -93
  247. data/node_modules/axe-core/lib/checks/media/no-autoplay-audio.json +0 -15
  248. data/node_modules/axe-core/lib/checks/mobile/css-orientation-lock.js +0 -251
  249. data/node_modules/axe-core/lib/checks/mobile/css-orientation-lock.json +0 -15
  250. data/node_modules/axe-core/lib/checks/mobile/meta-viewport-large.json +0 -15
  251. data/node_modules/axe-core/lib/checks/mobile/meta-viewport-scale.js +0 -55
  252. data/node_modules/axe-core/lib/checks/mobile/meta-viewport.json +0 -14
  253. data/node_modules/axe-core/lib/checks/navigation/header-present.js +0 -4
  254. data/node_modules/axe-core/lib/checks/navigation/header-present.json +0 -11
  255. data/node_modules/axe-core/lib/checks/navigation/heading-order-after.js +0 -14
  256. data/node_modules/axe-core/lib/checks/navigation/heading-order.js +0 -15
  257. data/node_modules/axe-core/lib/checks/navigation/heading-order.json +0 -12
  258. data/node_modules/axe-core/lib/checks/navigation/identical-links-same-purpose-after.js +0 -100
  259. data/node_modules/axe-core/lib/checks/navigation/identical-links-same-purpose.js +0 -31
  260. data/node_modules/axe-core/lib/checks/navigation/identical-links-same-purpose.json +0 -12
  261. data/node_modules/axe-core/lib/checks/navigation/internal-link-present.js +0 -4
  262. data/node_modules/axe-core/lib/checks/navigation/internal-link-present.json +0 -11
  263. data/node_modules/axe-core/lib/checks/navigation/landmark.js +0 -3
  264. data/node_modules/axe-core/lib/checks/navigation/landmark.json +0 -11
  265. data/node_modules/axe-core/lib/checks/navigation/meta-refresh.js +0 -4
  266. data/node_modules/axe-core/lib/checks/navigation/meta-refresh.json +0 -11
  267. data/node_modules/axe-core/lib/checks/navigation/p-as-heading.js +0 -93
  268. data/node_modules/axe-core/lib/checks/navigation/p-as-heading.json +0 -30
  269. data/node_modules/axe-core/lib/checks/navigation/region.js +0 -107
  270. data/node_modules/axe-core/lib/checks/navigation/region.json +0 -11
  271. data/node_modules/axe-core/lib/checks/navigation/skip-link.js +0 -5
  272. data/node_modules/axe-core/lib/checks/navigation/skip-link.json +0 -12
  273. data/node_modules/axe-core/lib/checks/navigation/unique-frame-title-after.js +0 -9
  274. data/node_modules/axe-core/lib/checks/navigation/unique-frame-title.js +0 -6
  275. data/node_modules/axe-core/lib/checks/navigation/unique-frame-title.json +0 -12
  276. data/node_modules/axe-core/lib/checks/parsing/duplicate-id-active.json +0 -12
  277. data/node_modules/axe-core/lib/checks/parsing/duplicate-id-after.js +0 -8
  278. data/node_modules/axe-core/lib/checks/parsing/duplicate-id-aria.json +0 -12
  279. data/node_modules/axe-core/lib/checks/parsing/duplicate-id.js +0 -17
  280. data/node_modules/axe-core/lib/checks/parsing/duplicate-id.json +0 -12
  281. data/node_modules/axe-core/lib/checks/shared/aria-label.js +0 -2
  282. data/node_modules/axe-core/lib/checks/shared/aria-label.json +0 -11
  283. data/node_modules/axe-core/lib/checks/shared/aria-labelledby.js +0 -2
  284. data/node_modules/axe-core/lib/checks/shared/aria-labelledby.json +0 -11
  285. data/node_modules/axe-core/lib/checks/shared/avoid-inline-spacing.js +0 -18
  286. data/node_modules/axe-core/lib/checks/shared/avoid-inline-spacing.json +0 -14
  287. data/node_modules/axe-core/lib/checks/shared/button-has-visible-text.js +0 -12
  288. data/node_modules/axe-core/lib/checks/shared/button-has-visible-text.json +0 -11
  289. data/node_modules/axe-core/lib/checks/shared/doc-has-title.js +0 -2
  290. data/node_modules/axe-core/lib/checks/shared/doc-has-title.json +0 -11
  291. data/node_modules/axe-core/lib/checks/shared/exists.js +0 -1
  292. data/node_modules/axe-core/lib/checks/shared/exists.json +0 -11
  293. data/node_modules/axe-core/lib/checks/shared/has-alt.js +0 -6
  294. data/node_modules/axe-core/lib/checks/shared/has-alt.json +0 -11
  295. data/node_modules/axe-core/lib/checks/shared/has-visible-text.js +0 -1
  296. data/node_modules/axe-core/lib/checks/shared/has-visible-text.json +0 -11
  297. data/node_modules/axe-core/lib/checks/shared/is-on-screen.js +0 -4
  298. data/node_modules/axe-core/lib/checks/shared/is-on-screen.json +0 -11
  299. data/node_modules/axe-core/lib/checks/shared/non-empty-alt.js +0 -2
  300. data/node_modules/axe-core/lib/checks/shared/non-empty-alt.json +0 -11
  301. data/node_modules/axe-core/lib/checks/shared/non-empty-if-present.js +0 -15
  302. data/node_modules/axe-core/lib/checks/shared/non-empty-if-present.json +0 -14
  303. data/node_modules/axe-core/lib/checks/shared/non-empty-title.js +0 -2
  304. data/node_modules/axe-core/lib/checks/shared/non-empty-title.json +0 -11
  305. data/node_modules/axe-core/lib/checks/shared/non-empty-value.js +0 -2
  306. data/node_modules/axe-core/lib/checks/shared/non-empty-value.json +0 -11
  307. data/node_modules/axe-core/lib/checks/shared/role-none.js +0 -1
  308. data/node_modules/axe-core/lib/checks/shared/role-none.json +0 -11
  309. data/node_modules/axe-core/lib/checks/shared/role-presentation.js +0 -1
  310. data/node_modules/axe-core/lib/checks/shared/role-presentation.json +0 -11
  311. data/node_modules/axe-core/lib/checks/shared/svg-non-empty-title.js +0 -4
  312. data/node_modules/axe-core/lib/checks/shared/svg-non-empty-title.json +0 -11
  313. data/node_modules/axe-core/lib/checks/tables/caption-faked.js +0 -10
  314. data/node_modules/axe-core/lib/checks/tables/caption-faked.json +0 -11
  315. data/node_modules/axe-core/lib/checks/tables/has-caption.js +0 -1
  316. data/node_modules/axe-core/lib/checks/tables/has-caption.json +0 -12
  317. data/node_modules/axe-core/lib/checks/tables/has-summary.js +0 -1
  318. data/node_modules/axe-core/lib/checks/tables/has-summary.json +0 -12
  319. data/node_modules/axe-core/lib/checks/tables/has-th.js +0 -31
  320. data/node_modules/axe-core/lib/checks/tables/has-th.json +0 -12
  321. data/node_modules/axe-core/lib/checks/tables/headers-visible-text.js +0 -30
  322. data/node_modules/axe-core/lib/checks/tables/html5-scope.js +0 -5
  323. data/node_modules/axe-core/lib/checks/tables/html5-scope.json +0 -11
  324. data/node_modules/axe-core/lib/checks/tables/same-caption-summary.js +0 -7
  325. data/node_modules/axe-core/lib/checks/tables/same-caption-summary.json +0 -11
  326. data/node_modules/axe-core/lib/checks/tables/scope-value.js +0 -5
  327. data/node_modules/axe-core/lib/checks/tables/scope-value.json +0 -11
  328. data/node_modules/axe-core/lib/checks/tables/td-has-header.js +0 -30
  329. data/node_modules/axe-core/lib/checks/tables/td-has-header.json +0 -11
  330. data/node_modules/axe-core/lib/checks/tables/td-headers-attr.js +0 -61
  331. data/node_modules/axe-core/lib/checks/tables/td-headers-attr.json +0 -12
  332. data/node_modules/axe-core/lib/checks/tables/th-has-data-cells.js +0 -76
  333. data/node_modules/axe-core/lib/checks/tables/th-has-data-cells.json +0 -12
  334. data/node_modules/axe-core/lib/checks/tables/th-single-row-column.js +0 -39
  335. data/node_modules/axe-core/lib/checks/visibility/hidden-content.js +0 -21
  336. data/node_modules/axe-core/lib/checks/visibility/hidden-content.json +0 -12
  337. data/node_modules/axe-core/lib/commons/aria/arialabel-text.js +0 -18
  338. data/node_modules/axe-core/lib/commons/aria/arialabelledby-text.js +0 -52
  339. data/node_modules/axe-core/lib/commons/aria/attributes.js +0 -45
  340. data/node_modules/axe-core/lib/commons/aria/get-element-unallowed-roles.js +0 -113
  341. data/node_modules/axe-core/lib/commons/aria/get-owned-virtual.js +0 -24
  342. data/node_modules/axe-core/lib/commons/aria/get-role.js +0 -44
  343. data/node_modules/axe-core/lib/commons/aria/index.js +0 -2424
  344. data/node_modules/axe-core/lib/commons/aria/is-accessible-ref.js +0 -59
  345. data/node_modules/axe-core/lib/commons/aria/is-aria-role-allowed-on-element.js +0 -41
  346. data/node_modules/axe-core/lib/commons/aria/is-unsupported-role.js +0 -14
  347. data/node_modules/axe-core/lib/commons/aria/label-virtual.js +0 -54
  348. data/node_modules/axe-core/lib/commons/aria/named-from-contents.js +0 -39
  349. data/node_modules/axe-core/lib/commons/aria/roles.js +0 -208
  350. data/node_modules/axe-core/lib/commons/aria/validate-attr-value.js +0 -62
  351. data/node_modules/axe-core/lib/commons/color/center-point-of-rect.js +0 -30
  352. data/node_modules/axe-core/lib/commons/color/contrast.js +0 -178
  353. data/node_modules/axe-core/lib/commons/color/element-has-image.js +0 -36
  354. data/node_modules/axe-core/lib/commons/color/element-is-distinct.js +0 -88
  355. data/node_modules/axe-core/lib/commons/color/get-background-color.js +0 -285
  356. data/node_modules/axe-core/lib/commons/color/get-foreground-color.js +0 -61
  357. data/node_modules/axe-core/lib/commons/color/get-own-background-color.js +0 -22
  358. data/node_modules/axe-core/lib/commons/color/incomplete-data.js +0 -50
  359. data/node_modules/axe-core/lib/commons/color/index.js +0 -8
  360. data/node_modules/axe-core/lib/commons/dom/elements-below-floating.js +0 -39
  361. data/node_modules/axe-core/lib/commons/dom/find-elms-in-context.js +0 -28
  362. data/node_modules/axe-core/lib/commons/dom/find-up.js +0 -63
  363. data/node_modules/axe-core/lib/commons/dom/get-composed-parent.js +0 -25
  364. data/node_modules/axe-core/lib/commons/dom/get-element-by-reference.js +0 -34
  365. data/node_modules/axe-core/lib/commons/dom/get-element-coordinates.js +0 -38
  366. data/node_modules/axe-core/lib/commons/dom/get-element-stack.js +0 -589
  367. data/node_modules/axe-core/lib/commons/dom/get-root-node.js +0 -12
  368. data/node_modules/axe-core/lib/commons/dom/get-scroll-offset.js +0 -33
  369. data/node_modules/axe-core/lib/commons/dom/get-tabbable-elements.js +0 -24
  370. data/node_modules/axe-core/lib/commons/dom/get-viewport-size.js +0 -37
  371. data/node_modules/axe-core/lib/commons/dom/has-content-virtual.js +0 -75
  372. data/node_modules/axe-core/lib/commons/dom/idrefs.js +0 -36
  373. data/node_modules/axe-core/lib/commons/dom/index.js +0 -9
  374. data/node_modules/axe-core/lib/commons/dom/is-focusable.js +0 -95
  375. data/node_modules/axe-core/lib/commons/dom/is-hidden-with-css.js +0 -73
  376. data/node_modules/axe-core/lib/commons/dom/is-html5.js +0 -17
  377. data/node_modules/axe-core/lib/commons/dom/is-in-text-block.js +0 -94
  378. data/node_modules/axe-core/lib/commons/dom/is-modal-open.js +0 -98
  379. data/node_modules/axe-core/lib/commons/dom/is-node.js +0 -13
  380. data/node_modules/axe-core/lib/commons/dom/is-offscreen.js +0 -62
  381. data/node_modules/axe-core/lib/commons/dom/is-skip-link.js +0 -45
  382. data/node_modules/axe-core/lib/commons/dom/is-visible.js +0 -176
  383. data/node_modules/axe-core/lib/commons/dom/is-visual-content.js +0 -49
  384. data/node_modules/axe-core/lib/commons/dom/shadow-elements-from-point.js +0 -42
  385. data/node_modules/axe-core/lib/commons/dom/url-props-from-attribute.js +0 -152
  386. data/node_modules/axe-core/lib/commons/dom/visually-contains.js +0 -111
  387. data/node_modules/axe-core/lib/commons/dom/visually-overlaps.js +0 -46
  388. data/node_modules/axe-core/lib/commons/forms/index.js +0 -8
  389. data/node_modules/axe-core/lib/commons/forms/is-aria-combobox.js +0 -13
  390. data/node_modules/axe-core/lib/commons/forms/is-aria-listbox.js +0 -13
  391. data/node_modules/axe-core/lib/commons/forms/is-aria-range.js +0 -14
  392. data/node_modules/axe-core/lib/commons/forms/is-aria-textbox.js +0 -13
  393. data/node_modules/axe-core/lib/commons/forms/is-native-select.js +0 -13
  394. data/node_modules/axe-core/lib/commons/forms/is-native-textbox.js +0 -28
  395. data/node_modules/axe-core/lib/commons/index.js +0 -11
  396. data/node_modules/axe-core/lib/commons/intro.stub +0 -1
  397. data/node_modules/axe-core/lib/commons/matches/attributes.js +0 -27
  398. data/node_modules/axe-core/lib/commons/matches/condition.js +0 -19
  399. data/node_modules/axe-core/lib/commons/matches/from-definition.js +0 -52
  400. data/node_modules/axe-core/lib/commons/matches/from-function.js +0 -38
  401. data/node_modules/axe-core/lib/commons/matches/from-primative.js +0 -30
  402. data/node_modules/axe-core/lib/commons/matches/index.js +0 -39
  403. data/node_modules/axe-core/lib/commons/matches/node-name.js +0 -24
  404. data/node_modules/axe-core/lib/commons/matches/properties.js +0 -28
  405. data/node_modules/axe-core/lib/commons/outro.stub +0 -2
  406. data/node_modules/axe-core/lib/commons/table/get-all-cells.js +0 -28
  407. data/node_modules/axe-core/lib/commons/table/get-cell-position.js +0 -28
  408. data/node_modules/axe-core/lib/commons/table/get-headers.js +0 -79
  409. data/node_modules/axe-core/lib/commons/table/get-scope.js +0 -54
  410. data/node_modules/axe-core/lib/commons/table/index.js +0 -9
  411. data/node_modules/axe-core/lib/commons/table/is-column-header.js +0 -13
  412. data/node_modules/axe-core/lib/commons/table/is-data-cell.js +0 -22
  413. data/node_modules/axe-core/lib/commons/table/is-data-table.js +0 -189
  414. data/node_modules/axe-core/lib/commons/table/is-header.js +0 -22
  415. data/node_modules/axe-core/lib/commons/table/is-row-header.js +0 -13
  416. data/node_modules/axe-core/lib/commons/table/to-grid.js +0 -38
  417. data/node_modules/axe-core/lib/commons/table/traverse.js +0 -78
  418. data/node_modules/axe-core/lib/commons/text/accessible-text-virtual.js +0 -152
  419. data/node_modules/axe-core/lib/commons/text/form-control-value.js +0 -192
  420. data/node_modules/axe-core/lib/commons/text/index.js +0 -8
  421. data/node_modules/axe-core/lib/commons/text/is-human-interpretable.js +0 -51
  422. data/node_modules/axe-core/lib/commons/text/is-icon-ligature.js +0 -210
  423. data/node_modules/axe-core/lib/commons/text/is-valid-autocomplete.js +0 -117
  424. data/node_modules/axe-core/lib/commons/text/label-text.js +0 -58
  425. data/node_modules/axe-core/lib/commons/text/label-virtual.js +0 -53
  426. data/node_modules/axe-core/lib/commons/text/native-element-types.js +0 -100
  427. data/node_modules/axe-core/lib/commons/text/native-text-alternative.js +0 -50
  428. data/node_modules/axe-core/lib/commons/text/native-text-methods.js +0 -122
  429. data/node_modules/axe-core/lib/commons/text/sanitize.js +0 -18
  430. data/node_modules/axe-core/lib/commons/text/subtree-text.js +0 -89
  431. data/node_modules/axe-core/lib/commons/text/title-text.js +0 -33
  432. data/node_modules/axe-core/lib/commons/text/unicode.js +0 -147
  433. data/node_modules/axe-core/lib/commons/text/unsupported.js +0 -5
  434. data/node_modules/axe-core/lib/commons/text/visible-text-nodes.js +0 -25
  435. data/node_modules/axe-core/lib/commons/text/visible-virtual.js +0 -46
  436. data/node_modules/axe-core/lib/commons/utils/index.js +0 -10
  437. data/node_modules/axe-core/lib/core/base/audit.js +0 -781
  438. data/node_modules/axe-core/lib/core/base/cache.js +0 -33
  439. data/node_modules/axe-core/lib/core/base/check-result.js +0 -33
  440. data/node_modules/axe-core/lib/core/base/check.js +0 -170
  441. data/node_modules/axe-core/lib/core/base/context.js +0 -274
  442. data/node_modules/axe-core/lib/core/base/rule-result.js +0 -39
  443. data/node_modules/axe-core/lib/core/base/rule.js +0 -560
  444. data/node_modules/axe-core/lib/core/base/virtual-node/abstract-virtual-node.js +0 -40
  445. data/node_modules/axe-core/lib/core/base/virtual-node/serial-virtual-node.js +0 -88
  446. data/node_modules/axe-core/lib/core/base/virtual-node/virtual-node.js +0 -136
  447. data/node_modules/axe-core/lib/core/constants.js +0 -76
  448. data/node_modules/axe-core/lib/core/imports/index.js +0 -51
  449. data/node_modules/axe-core/lib/core/index.js +0 -43
  450. data/node_modules/axe-core/lib/core/log.js +0 -12
  451. data/node_modules/axe-core/lib/core/public/cleanup-plugins.js +0 -53
  452. data/node_modules/axe-core/lib/core/public/configure.js +0 -110
  453. data/node_modules/axe-core/lib/core/public/get-rules.js +0 -29
  454. data/node_modules/axe-core/lib/core/public/load.js +0 -66
  455. data/node_modules/axe-core/lib/core/public/plugins.js +0 -47
  456. data/node_modules/axe-core/lib/core/public/reporter.js +0 -24
  457. data/node_modules/axe-core/lib/core/public/reset.js +0 -12
  458. data/node_modules/axe-core/lib/core/public/run-rules.js +0 -96
  459. data/node_modules/axe-core/lib/core/public/run-virtual-rule.js +0 -50
  460. data/node_modules/axe-core/lib/core/public/run.js +0 -159
  461. data/node_modules/axe-core/lib/core/reporters/helpers/failure-summary.js +0 -35
  462. data/node_modules/axe-core/lib/core/reporters/helpers/get-environment-data.js +0 -39
  463. data/node_modules/axe-core/lib/core/reporters/helpers/incomplete-fallback-msg.js +0 -13
  464. data/node_modules/axe-core/lib/core/reporters/helpers/index.js +0 -3
  465. data/node_modules/axe-core/lib/core/reporters/helpers/process-aggregate.js +0 -102
  466. data/node_modules/axe-core/lib/core/reporters/na.js +0 -24
  467. data/node_modules/axe-core/lib/core/reporters/no-passes.js +0 -18
  468. data/node_modules/axe-core/lib/core/reporters/raw-env.js +0 -12
  469. data/node_modules/axe-core/lib/core/reporters/raw.js +0 -32
  470. data/node_modules/axe-core/lib/core/reporters/v1.js +0 -29
  471. data/node_modules/axe-core/lib/core/reporters/v2.js +0 -22
  472. data/node_modules/axe-core/lib/core/utils/aggregate.js +0 -19
  473. data/node_modules/axe-core/lib/core/utils/aggregateChecks.js +0 -85
  474. data/node_modules/axe-core/lib/core/utils/aggregateNodeResults.js +0 -61
  475. data/node_modules/axe-core/lib/core/utils/aggregateResult.js +0 -37
  476. data/node_modules/axe-core/lib/core/utils/are-styles-set.js +0 -21
  477. data/node_modules/axe-core/lib/core/utils/assert.js +0 -12
  478. data/node_modules/axe-core/lib/core/utils/check-helper.js +0 -38
  479. data/node_modules/axe-core/lib/core/utils/clone.js +0 -27
  480. data/node_modules/axe-core/lib/core/utils/collect-results-from-frames.js +0 -127
  481. data/node_modules/axe-core/lib/core/utils/contains.js +0 -44
  482. data/node_modules/axe-core/lib/core/utils/css-parser.js +0 -7
  483. data/node_modules/axe-core/lib/core/utils/dq-element.js +0 -97
  484. data/node_modules/axe-core/lib/core/utils/element-matches.js +0 -43
  485. data/node_modules/axe-core/lib/core/utils/escape-selector.js +0 -78
  486. data/node_modules/axe-core/lib/core/utils/extend-meta-data.js +0 -17
  487. data/node_modules/axe-core/lib/core/utils/finalize-result.js +0 -11
  488. data/node_modules/axe-core/lib/core/utils/find-by.js +0 -14
  489. data/node_modules/axe-core/lib/core/utils/flattened-tree.js +0 -156
  490. data/node_modules/axe-core/lib/core/utils/get-all-checks.js +0 -12
  491. data/node_modules/axe-core/lib/core/utils/get-base-lang.js +0 -16
  492. data/node_modules/axe-core/lib/core/utils/get-check-message.js +0 -21
  493. data/node_modules/axe-core/lib/core/utils/get-check-option.js +0 -39
  494. data/node_modules/axe-core/lib/core/utils/get-friendly-uri-end.js +0 -144
  495. data/node_modules/axe-core/lib/core/utils/get-node-attributes.js +0 -21
  496. data/node_modules/axe-core/lib/core/utils/get-root-node.js +0 -17
  497. data/node_modules/axe-core/lib/core/utils/get-scroll.js +0 -39
  498. data/node_modules/axe-core/lib/core/utils/get-selector.js +0 -409
  499. data/node_modules/axe-core/lib/core/utils/get-stylesheet-factory.js +0 -51
  500. data/node_modules/axe-core/lib/core/utils/get-xpath.js +0 -83
  501. data/node_modules/axe-core/lib/core/utils/index.js +0 -10
  502. data/node_modules/axe-core/lib/core/utils/inject-style.js +0 -38
  503. data/node_modules/axe-core/lib/core/utils/is-hidden.js +0 -52
  504. data/node_modules/axe-core/lib/core/utils/is-html-element.js +0 -135
  505. data/node_modules/axe-core/lib/core/utils/is-shadow-root.js +0 -40
  506. data/node_modules/axe-core/lib/core/utils/is-xhtml.js +0 -14
  507. data/node_modules/axe-core/lib/core/utils/matches.js +0 -263
  508. data/node_modules/axe-core/lib/core/utils/memoize.js +0 -17
  509. data/node_modules/axe-core/lib/core/utils/merge-results.js +0 -116
  510. data/node_modules/axe-core/lib/core/utils/node-sorter.js +0 -21
  511. data/node_modules/axe-core/lib/core/utils/parse-crossorigin-stylesheet.js +0 -54
  512. data/node_modules/axe-core/lib/core/utils/parse-sameorigin-stylesheet.js +0 -96
  513. data/node_modules/axe-core/lib/core/utils/parse-stylesheet.js +0 -70
  514. data/node_modules/axe-core/lib/core/utils/performance-timer.js +0 -126
  515. data/node_modules/axe-core/lib/core/utils/pollyfills.js +0 -299
  516. data/node_modules/axe-core/lib/core/utils/preload-cssom.js +0 -253
  517. data/node_modules/axe-core/lib/core/utils/preload-media.js +0 -65
  518. data/node_modules/axe-core/lib/core/utils/preload.js +0 -144
  519. data/node_modules/axe-core/lib/core/utils/process-message.js +0 -72
  520. data/node_modules/axe-core/lib/core/utils/publish-metadata.js +0 -106
  521. data/node_modules/axe-core/lib/core/utils/qsa.js +0 -110
  522. data/node_modules/axe-core/lib/core/utils/queue.js +0 -138
  523. data/node_modules/axe-core/lib/core/utils/respondable.js +0 -261
  524. data/node_modules/axe-core/lib/core/utils/rule-should-run.js +0 -82
  525. data/node_modules/axe-core/lib/core/utils/scroll-state.js +0 -57
  526. data/node_modules/axe-core/lib/core/utils/select.js +0 -135
  527. data/node_modules/axe-core/lib/core/utils/to-array.js +0 -21
  528. data/node_modules/axe-core/lib/core/utils/token-list.js +0 -15
  529. data/node_modules/axe-core/lib/core/utils/uuid.js +0 -244
  530. data/node_modules/axe-core/lib/core/utils/valid-input-type.js +0 -35
  531. data/node_modules/axe-core/lib/core/utils/valid-langs.js +0 -8152
  532. data/node_modules/axe-core/lib/intro.stub +0 -15
  533. data/node_modules/axe-core/lib/misc/any-failure-summary.json +0 -6
  534. data/node_modules/axe-core/lib/misc/incomplete-fallback.json +0 -3
  535. data/node_modules/axe-core/lib/misc/none-failure-summary.json +0 -6
  536. data/node_modules/axe-core/lib/outro.stub +0 -2
  537. data/node_modules/axe-core/lib/rules/accesskeys.json +0 -13
  538. data/node_modules/axe-core/lib/rules/area-alt.json +0 -21
  539. data/node_modules/axe-core/lib/rules/aria-allowed-attr-matches.js +0 -11
  540. data/node_modules/axe-core/lib/rules/aria-allowed-attr.json +0 -12
  541. data/node_modules/axe-core/lib/rules/aria-allowed-role-matches.js +0 -7
  542. data/node_modules/axe-core/lib/rules/aria-allowed-role.json +0 -14
  543. data/node_modules/axe-core/lib/rules/aria-dpub-role-fallback-matches.js +0 -10
  544. data/node_modules/axe-core/lib/rules/aria-dpub-role-fallback.json +0 -14
  545. data/node_modules/axe-core/lib/rules/aria-form-field-name-matches.js +0 -50
  546. data/node_modules/axe-core/lib/rules/aria-has-attr-matches.js +0 -11
  547. data/node_modules/axe-core/lib/rules/aria-hidden-body.json +0 -13
  548. data/node_modules/axe-core/lib/rules/aria-hidden-focus-matches.js +0 -18
  549. data/node_modules/axe-core/lib/rules/aria-hidden-focus.json +0 -18
  550. data/node_modules/axe-core/lib/rules/aria-input-field-name.json +0 -13
  551. data/node_modules/axe-core/lib/rules/aria-required-attr.json +0 -12
  552. data/node_modules/axe-core/lib/rules/aria-required-children.json +0 -12
  553. data/node_modules/axe-core/lib/rules/aria-required-parent.json +0 -12
  554. data/node_modules/axe-core/lib/rules/aria-roledescription.json +0 -12
  555. data/node_modules/axe-core/lib/rules/aria-roles.json +0 -13
  556. data/node_modules/axe-core/lib/rules/aria-toggle-field-name.json +0 -18
  557. data/node_modules/axe-core/lib/rules/aria-valid-attr-value.json +0 -12
  558. data/node_modules/axe-core/lib/rules/aria-valid-attr.json +0 -12
  559. data/node_modules/axe-core/lib/rules/audio-caption.json +0 -20
  560. data/node_modules/axe-core/lib/rules/autocomplete-matches.js +0 -49
  561. data/node_modules/axe-core/lib/rules/autocomplete-valid.json +0 -12
  562. data/node_modules/axe-core/lib/rules/avoid-inline-spacing.json +0 -12
  563. data/node_modules/axe-core/lib/rules/blink.json +0 -19
  564. data/node_modules/axe-core/lib/rules/button-name.json +0 -25
  565. data/node_modules/axe-core/lib/rules/bypass-matches.js +0 -1
  566. data/node_modules/axe-core/lib/rules/bypass.json +0 -20
  567. data/node_modules/axe-core/lib/rules/checkboxgroup.json +0 -13
  568. data/node_modules/axe-core/lib/rules/color-contrast-matches.js +0 -161
  569. data/node_modules/axe-core/lib/rules/color-contrast.json +0 -13
  570. data/node_modules/axe-core/lib/rules/css-orientation-lock.json +0 -13
  571. data/node_modules/axe-core/lib/rules/data-table-large-matches.js +0 -11
  572. data/node_modules/axe-core/lib/rules/data-table-matches.js +0 -1
  573. data/node_modules/axe-core/lib/rules/definition-list.json +0 -13
  574. data/node_modules/axe-core/lib/rules/dlitem.json +0 -13
  575. data/node_modules/axe-core/lib/rules/document-title.json +0 -13
  576. data/node_modules/axe-core/lib/rules/duplicate-id-active-matches.js +0 -8
  577. data/node_modules/axe-core/lib/rules/duplicate-id-active.json +0 -14
  578. data/node_modules/axe-core/lib/rules/duplicate-id-aria-matches.js +0 -1
  579. data/node_modules/axe-core/lib/rules/duplicate-id-aria.json +0 -14
  580. data/node_modules/axe-core/lib/rules/duplicate-id-misc-matches.js +0 -11
  581. data/node_modules/axe-core/lib/rules/duplicate-id.json +0 -14
  582. data/node_modules/axe-core/lib/rules/empty-heading.json +0 -13
  583. data/node_modules/axe-core/lib/rules/focus-order-semantics.json +0 -13
  584. data/node_modules/axe-core/lib/rules/form-field-multiple-labels.json +0 -13
  585. data/node_modules/axe-core/lib/rules/frame-tested.json +0 -12
  586. data/node_modules/axe-core/lib/rules/frame-title-has-text.js +0 -2
  587. data/node_modules/axe-core/lib/rules/frame-title-unique.json +0 -13
  588. data/node_modules/axe-core/lib/rules/frame-title.json +0 -25
  589. data/node_modules/axe-core/lib/rules/heading-matches.js +0 -15
  590. data/node_modules/axe-core/lib/rules/heading-order.json +0 -13
  591. data/node_modules/axe-core/lib/rules/hidden-content.json +0 -13
  592. data/node_modules/axe-core/lib/rules/html-has-lang.json +0 -13
  593. data/node_modules/axe-core/lib/rules/html-lang-valid.json +0 -12
  594. data/node_modules/axe-core/lib/rules/html-namespace-matches.js +0 -1
  595. data/node_modules/axe-core/lib/rules/html-xml-lang-mismatch.json +0 -13
  596. data/node_modules/axe-core/lib/rules/identical-links-same-purpose-matches.js +0 -13
  597. data/node_modules/axe-core/lib/rules/identical-links-same-purpose.json +0 -14
  598. data/node_modules/axe-core/lib/rules/image-alt.json +0 -25
  599. data/node_modules/axe-core/lib/rules/img-redundant-alt.json +0 -12
  600. data/node_modules/axe-core/lib/rules/input-button-name.json +0 -26
  601. data/node_modules/axe-core/lib/rules/input-image-alt.json +0 -18
  602. data/node_modules/axe-core/lib/rules/inserted-into-focus-order-matches.js +0 -1
  603. data/node_modules/axe-core/lib/rules/label-content-name-mismatch-matches.js +0 -45
  604. data/node_modules/axe-core/lib/rules/label-content-name-mismatch.json +0 -12
  605. data/node_modules/axe-core/lib/rules/label-matches.js +0 -11
  606. data/node_modules/axe-core/lib/rules/label-title-only.json +0 -13
  607. data/node_modules/axe-core/lib/rules/label.json +0 -26
  608. data/node_modules/axe-core/lib/rules/landmark-banner-is-top-level.json +0 -13
  609. data/node_modules/axe-core/lib/rules/landmark-complementary-is-top-level.json +0 -12
  610. data/node_modules/axe-core/lib/rules/landmark-contentinfo-is-top-level.json +0 -13
  611. data/node_modules/axe-core/lib/rules/landmark-has-body-context.js +0 -8
  612. data/node_modules/axe-core/lib/rules/landmark-main-is-top-level.json +0 -12
  613. data/node_modules/axe-core/lib/rules/landmark-no-duplicate-banner.json +0 -12
  614. data/node_modules/axe-core/lib/rules/landmark-no-duplicate-contentinfo.json +0 -12
  615. data/node_modules/axe-core/lib/rules/landmark-no-duplicate-main.json +0 -12
  616. data/node_modules/axe-core/lib/rules/landmark-one-main.json +0 -12
  617. data/node_modules/axe-core/lib/rules/landmark-unique-matches.js +0 -41
  618. data/node_modules/axe-core/lib/rules/landmark-unique.json +0 -13
  619. data/node_modules/axe-core/lib/rules/layout-table-matches.js +0 -8
  620. data/node_modules/axe-core/lib/rules/layout-table.json +0 -14
  621. data/node_modules/axe-core/lib/rules/link-in-text-block-matches.js +0 -14
  622. data/node_modules/axe-core/lib/rules/link-in-text-block.json +0 -14
  623. data/node_modules/axe-core/lib/rules/link-name.json +0 -25
  624. data/node_modules/axe-core/lib/rules/list.json +0 -13
  625. data/node_modules/axe-core/lib/rules/listitem.json +0 -13
  626. data/node_modules/axe-core/lib/rules/marquee.json +0 -13
  627. data/node_modules/axe-core/lib/rules/meta-refresh.json +0 -20
  628. data/node_modules/axe-core/lib/rules/meta-viewport-large.json +0 -13
  629. data/node_modules/axe-core/lib/rules/meta-viewport.json +0 -13
  630. data/node_modules/axe-core/lib/rules/no-autoplay-audio-matches.js +0 -18
  631. data/node_modules/axe-core/lib/rules/no-autoplay-audio.json +0 -15
  632. data/node_modules/axe-core/lib/rules/no-empty-role-matches.js +0 -9
  633. data/node_modules/axe-core/lib/rules/no-role-matches.js +0 -1
  634. data/node_modules/axe-core/lib/rules/not-html-matches.js +0 -1
  635. data/node_modules/axe-core/lib/rules/object-alt.json +0 -25
  636. data/node_modules/axe-core/lib/rules/p-as-heading-matches.js +0 -17
  637. data/node_modules/axe-core/lib/rules/p-as-heading.json +0 -13
  638. data/node_modules/axe-core/lib/rules/page-has-heading-one.json +0 -12
  639. data/node_modules/axe-core/lib/rules/radiogroup.json +0 -13
  640. data/node_modules/axe-core/lib/rules/region.json +0 -12
  641. data/node_modules/axe-core/lib/rules/role-img-alt.json +0 -19
  642. data/node_modules/axe-core/lib/rules/scope-attr-valid.json +0 -12
  643. data/node_modules/axe-core/lib/rules/scrollable-region-focusable-matches.js +0 -30
  644. data/node_modules/axe-core/lib/rules/scrollable-region-focusable.json +0 -12
  645. data/node_modules/axe-core/lib/rules/server-side-image-map.json +0 -18
  646. data/node_modules/axe-core/lib/rules/skip-link-matches.js +0 -1
  647. data/node_modules/axe-core/lib/rules/skip-link.json +0 -13
  648. data/node_modules/axe-core/lib/rules/svg-img-alt.json +0 -24
  649. data/node_modules/axe-core/lib/rules/svg-namespace-matches.js +0 -1
  650. data/node_modules/axe-core/lib/rules/tabindex.json +0 -12
  651. data/node_modules/axe-core/lib/rules/table-duplicate-name.json +0 -12
  652. data/node_modules/axe-core/lib/rules/table-fake-caption.json +0 -20
  653. data/node_modules/axe-core/lib/rules/td-has-header.json +0 -20
  654. data/node_modules/axe-core/lib/rules/td-headers-attr.json +0 -12
  655. data/node_modules/axe-core/lib/rules/th-has-data-cells.json +0 -13
  656. data/node_modules/axe-core/lib/rules/valid-lang.json +0 -13
  657. data/node_modules/axe-core/lib/rules/video-caption.json +0 -19
  658. data/node_modules/axe-core/lib/rules/video-description.json +0 -21
  659. data/node_modules/axe-core/lib/rules/window-is-top.js +0 -3
  660. data/node_modules/axe-core/lib/rules/xml-lang-mismatch-matches.js +0 -12
  661. data/node_modules/axe-core/typings/axe-core/axe-core-tests.ts +0 -188
@@ -1,2424 +0,0 @@
1
- /**
2
- * Namespace for aria-related utilities.
3
- * @namespace commons.aria
4
- * @memberof axe
5
- */
6
- const aria = (commons.aria = {});
7
- const lookupTable = (aria.lookupTable = {});
8
-
9
- const isNull = value => value === null;
10
- const isNotNull = value => value !== null;
11
-
12
- lookupTable.attributes = {
13
- 'aria-activedescendant': {
14
- type: 'idref',
15
- allowEmpty: true,
16
- unsupported: false
17
- },
18
- 'aria-atomic': {
19
- type: 'boolean',
20
- values: ['true', 'false'],
21
- unsupported: false
22
- },
23
- 'aria-autocomplete': {
24
- type: 'nmtoken',
25
- values: ['inline', 'list', 'both', 'none'],
26
- unsupported: false
27
- },
28
- 'aria-busy': {
29
- type: 'boolean',
30
- values: ['true', 'false'],
31
- unsupported: false
32
- },
33
- 'aria-checked': {
34
- type: 'nmtoken',
35
- values: ['true', 'false', 'mixed', 'undefined'],
36
- unsupported: false
37
- },
38
- 'aria-colcount': {
39
- type: 'int',
40
- unsupported: false
41
- },
42
- 'aria-colindex': {
43
- type: 'int',
44
- unsupported: false
45
- },
46
- 'aria-colspan': {
47
- type: 'int',
48
- unsupported: false
49
- },
50
- 'aria-controls': {
51
- type: 'idrefs',
52
- allowEmpty: true,
53
- unsupported: false
54
- },
55
- 'aria-current': {
56
- type: 'nmtoken',
57
- allowEmpty: true,
58
- values: ['page', 'step', 'location', 'date', 'time', 'true', 'false'],
59
- unsupported: false
60
- },
61
- 'aria-describedby': {
62
- type: 'idrefs',
63
- allowEmpty: true,
64
- unsupported: false
65
- },
66
- 'aria-describedat': {
67
- unsupported: true,
68
- unstandardized: true
69
- },
70
- 'aria-details': {
71
- type: 'idref',
72
- allowEmpty: true,
73
- unsupported: false
74
- },
75
- 'aria-disabled': {
76
- type: 'boolean',
77
- values: ['true', 'false'],
78
- unsupported: false
79
- },
80
- 'aria-dropeffect': {
81
- type: 'nmtokens',
82
- values: ['copy', 'move', 'reference', 'execute', 'popup', 'none'],
83
- unsupported: false
84
- },
85
- 'aria-errormessage': {
86
- type: 'idref',
87
- allowEmpty: true,
88
- unsupported: false
89
- },
90
- 'aria-expanded': {
91
- type: 'nmtoken',
92
- values: ['true', 'false', 'undefined'],
93
- unsupported: false
94
- },
95
- 'aria-flowto': {
96
- type: 'idrefs',
97
- allowEmpty: true,
98
- unsupported: false
99
- },
100
- 'aria-grabbed': {
101
- type: 'nmtoken',
102
- values: ['true', 'false', 'undefined'],
103
- unsupported: false
104
- },
105
- 'aria-haspopup': {
106
- type: 'nmtoken',
107
- allowEmpty: true,
108
- values: ['true', 'false', 'menu', 'listbox', 'tree', 'grid', 'dialog'],
109
- unsupported: false
110
- },
111
- 'aria-hidden': {
112
- type: 'boolean',
113
- values: ['true', 'false'],
114
- unsupported: false
115
- },
116
- 'aria-invalid': {
117
- type: 'nmtoken',
118
- allowEmpty: true,
119
- values: ['true', 'false', 'spelling', 'grammar'],
120
- unsupported: false
121
- },
122
- 'aria-keyshortcuts': {
123
- type: 'string',
124
- allowEmpty: true,
125
- unsupported: false
126
- },
127
- 'aria-label': {
128
- type: 'string',
129
- allowEmpty: true,
130
- unsupported: false
131
- },
132
- 'aria-labelledby': {
133
- type: 'idrefs',
134
- allowEmpty: true,
135
- unsupported: false
136
- },
137
- 'aria-level': {
138
- type: 'int',
139
- unsupported: false
140
- },
141
- 'aria-live': {
142
- type: 'nmtoken',
143
- values: ['off', 'polite', 'assertive'],
144
- unsupported: false
145
- },
146
- 'aria-modal': {
147
- type: 'boolean',
148
- values: ['true', 'false'],
149
- unsupported: false
150
- },
151
- 'aria-multiline': {
152
- type: 'boolean',
153
- values: ['true', 'false'],
154
- unsupported: false
155
- },
156
- 'aria-multiselectable': {
157
- type: 'boolean',
158
- values: ['true', 'false'],
159
- unsupported: false
160
- },
161
- 'aria-orientation': {
162
- type: 'nmtoken',
163
- values: ['horizontal', 'vertical'],
164
- unsupported: false
165
- },
166
- 'aria-owns': {
167
- type: 'idrefs',
168
- allowEmpty: true,
169
- unsupported: false
170
- },
171
- 'aria-placeholder': {
172
- type: 'string',
173
- allowEmpty: true,
174
- unsupported: false
175
- },
176
- 'aria-posinset': {
177
- type: 'int',
178
- unsupported: false
179
- },
180
- 'aria-pressed': {
181
- type: 'nmtoken',
182
- values: ['true', 'false', 'mixed', 'undefined'],
183
- unsupported: false
184
- },
185
- 'aria-readonly': {
186
- type: 'boolean',
187
- values: ['true', 'false'],
188
- unsupported: false
189
- },
190
- 'aria-relevant': {
191
- type: 'nmtokens',
192
- values: ['additions', 'removals', 'text', 'all'],
193
- unsupported: false
194
- },
195
- 'aria-required': {
196
- type: 'boolean',
197
- values: ['true', 'false'],
198
- unsupported: false
199
- },
200
- 'aria-roledescription': {
201
- type: 'string',
202
- allowEmpty: true,
203
- unsupported: false
204
- },
205
- 'aria-rowcount': {
206
- type: 'int',
207
- unsupported: false
208
- },
209
- 'aria-rowindex': {
210
- type: 'int',
211
- unsupported: false
212
- },
213
- 'aria-rowspan': {
214
- type: 'int',
215
- unsupported: false
216
- },
217
- 'aria-selected': {
218
- type: 'nmtoken',
219
- values: ['true', 'false', 'undefined'],
220
- unsupported: false
221
- },
222
- 'aria-setsize': {
223
- type: 'int',
224
- unsupported: false
225
- },
226
- 'aria-sort': {
227
- type: 'nmtoken',
228
- values: ['ascending', 'descending', 'other', 'none'],
229
- unsupported: false
230
- },
231
- 'aria-valuemax': {
232
- type: 'decimal',
233
- unsupported: false
234
- },
235
- 'aria-valuemin': {
236
- type: 'decimal',
237
- unsupported: false
238
- },
239
- 'aria-valuenow': {
240
- type: 'decimal',
241
- unsupported: false
242
- },
243
- 'aria-valuetext': {
244
- type: 'string',
245
- unsupported: false
246
- }
247
- };
248
-
249
- lookupTable.globalAttributes = [
250
- 'aria-atomic',
251
- 'aria-busy',
252
- 'aria-controls',
253
- 'aria-current',
254
- 'aria-describedby',
255
- 'aria-details',
256
- 'aria-disabled',
257
- 'aria-dropeffect',
258
- 'aria-flowto',
259
- 'aria-grabbed',
260
- 'aria-haspopup',
261
- 'aria-hidden',
262
- 'aria-invalid',
263
- 'aria-keyshortcuts',
264
- 'aria-label',
265
- 'aria-labelledby',
266
- 'aria-live',
267
- 'aria-owns',
268
- 'aria-relevant',
269
- 'aria-roledescription'
270
- ];
271
-
272
- lookupTable.role = {
273
- // valid roles below
274
- alert: {
275
- type: 'widget',
276
- attributes: {
277
- allowed: ['aria-expanded', 'aria-errormessage']
278
- },
279
- owned: null,
280
- nameFrom: ['author'],
281
- context: null,
282
- unsupported: false,
283
- allowedElements: ['section']
284
- },
285
- alertdialog: {
286
- type: 'widget',
287
- attributes: {
288
- allowed: ['aria-expanded', 'aria-modal', 'aria-errormessage']
289
- },
290
- owned: null,
291
- nameFrom: ['author'],
292
- context: null,
293
- unsupported: false,
294
- allowedElements: ['dialog', 'section']
295
- },
296
- application: {
297
- type: 'landmark',
298
- attributes: {
299
- allowed: ['aria-expanded', 'aria-errormessage']
300
- },
301
- owned: null,
302
- nameFrom: ['author'],
303
- context: null,
304
- unsupported: false,
305
- allowedElements: [
306
- 'article',
307
- 'audio',
308
- 'embed',
309
- 'iframe',
310
- 'object',
311
- 'section',
312
- 'svg',
313
- 'video'
314
- ]
315
- },
316
- article: {
317
- type: 'structure',
318
- attributes: {
319
- allowed: [
320
- 'aria-expanded',
321
- 'aria-posinset',
322
- 'aria-setsize',
323
- 'aria-errormessage'
324
- ]
325
- },
326
- owned: null,
327
- nameFrom: ['author'],
328
- context: null,
329
- implicit: ['article'],
330
- unsupported: false
331
- },
332
- banner: {
333
- type: 'landmark',
334
- attributes: {
335
- allowed: ['aria-expanded', 'aria-errormessage']
336
- },
337
- owned: null,
338
- nameFrom: ['author'],
339
- context: null,
340
- implicit: ['header'],
341
- unsupported: false,
342
- allowedElements: ['section']
343
- },
344
- button: {
345
- type: 'widget',
346
- attributes: {
347
- allowed: ['aria-expanded', 'aria-pressed', 'aria-errormessage']
348
- },
349
- owned: null,
350
- nameFrom: ['author', 'contents'],
351
- context: null,
352
- implicit: [
353
- 'button',
354
- 'input[type="button"]',
355
- 'input[type="image"]',
356
- 'input[type="reset"]',
357
- 'input[type="submit"]',
358
- 'summary'
359
- ],
360
- unsupported: false,
361
- allowedElements: [
362
- {
363
- nodeName: 'a',
364
- attributes: {
365
- href: isNotNull
366
- }
367
- }
368
- ]
369
- },
370
- cell: {
371
- type: 'structure',
372
- attributes: {
373
- allowed: [
374
- 'aria-colindex',
375
- 'aria-colspan',
376
- 'aria-rowindex',
377
- 'aria-rowspan',
378
- 'aria-errormessage'
379
- ]
380
- },
381
- owned: null,
382
- nameFrom: ['author', 'contents'],
383
- context: ['row'],
384
- implicit: ['td', 'th'],
385
- unsupported: false
386
- },
387
- checkbox: {
388
- type: 'widget',
389
- attributes: {
390
- allowed: [
391
- 'aria-checked',
392
- 'aria-required',
393
- 'aria-readonly',
394
- 'aria-errormessage'
395
- ]
396
- },
397
- owned: null,
398
- nameFrom: ['author', 'contents'],
399
- context: null,
400
- implicit: ['input[type="checkbox"]'],
401
- unsupported: false,
402
- allowedElements: ['button']
403
- },
404
- columnheader: {
405
- type: 'structure',
406
- attributes: {
407
- allowed: [
408
- 'aria-colindex',
409
- 'aria-colspan',
410
- 'aria-expanded',
411
- 'aria-rowindex',
412
- 'aria-rowspan',
413
- 'aria-required',
414
- 'aria-readonly',
415
- 'aria-selected',
416
- 'aria-sort',
417
- 'aria-errormessage'
418
- ]
419
- },
420
- owned: null,
421
- nameFrom: ['author', 'contents'],
422
- context: ['row'],
423
- implicit: ['th'],
424
- unsupported: false
425
- },
426
- combobox: {
427
- type: 'composite',
428
- attributes: {
429
- allowed: [
430
- 'aria-autocomplete',
431
- 'aria-required',
432
- 'aria-activedescendant',
433
- 'aria-orientation',
434
- 'aria-errormessage'
435
- ],
436
- required: ['aria-expanded']
437
- },
438
- owned: {
439
- all: ['listbox', 'tree', 'grid', 'dialog', 'textbox']
440
- },
441
- nameFrom: ['author'],
442
- context: null,
443
- unsupported: false,
444
- allowedElements: [
445
- {
446
- nodeName: 'input',
447
- properties: {
448
- type: ['text', 'search', 'tel', 'url', 'email']
449
- }
450
- }
451
- ]
452
- },
453
- command: {
454
- nameFrom: ['author'],
455
- type: 'abstract',
456
- unsupported: false
457
- },
458
- complementary: {
459
- type: 'landmark',
460
- attributes: {
461
- allowed: ['aria-expanded', 'aria-errormessage']
462
- },
463
- owned: null,
464
- nameFrom: ['author'],
465
- context: null,
466
- implicit: ['aside'],
467
- unsupported: false,
468
- allowedElements: ['section']
469
- },
470
- composite: {
471
- nameFrom: ['author'],
472
- type: 'abstract',
473
- unsupported: false
474
- },
475
- contentinfo: {
476
- type: 'landmark',
477
- attributes: {
478
- allowed: ['aria-expanded', 'aria-errormessage']
479
- },
480
- owned: null,
481
- nameFrom: ['author'],
482
- context: null,
483
- implicit: ['footer'],
484
- unsupported: false,
485
- allowedElements: ['section']
486
- },
487
- definition: {
488
- type: 'structure',
489
- attributes: {
490
- allowed: ['aria-expanded', 'aria-errormessage']
491
- },
492
- owned: null,
493
- nameFrom: ['author'],
494
- context: null,
495
- implicit: ['dd', 'dfn'],
496
- unsupported: false
497
- },
498
- dialog: {
499
- type: 'widget',
500
- attributes: {
501
- allowed: ['aria-expanded', 'aria-modal', 'aria-errormessage']
502
- },
503
- owned: null,
504
- nameFrom: ['author'],
505
- context: null,
506
- implicit: ['dialog'],
507
- unsupported: false,
508
- allowedElements: ['section']
509
- },
510
- directory: {
511
- type: 'structure',
512
- attributes: {
513
- allowed: ['aria-expanded', 'aria-errormessage']
514
- },
515
- owned: null,
516
- nameFrom: ['author', 'contents'],
517
- context: null,
518
- unsupported: false,
519
- allowedElements: ['ol', 'ul']
520
- },
521
- document: {
522
- type: 'structure',
523
- attributes: {
524
- allowed: ['aria-expanded', 'aria-errormessage']
525
- },
526
- owned: null,
527
- nameFrom: ['author'],
528
- context: null,
529
- implicit: ['body'],
530
- unsupported: false,
531
- allowedElements: ['article', 'embed', 'iframe', 'object', 'section', 'svg']
532
- },
533
- 'doc-abstract': {
534
- type: 'section',
535
- attributes: {
536
- allowed: ['aria-expanded', 'aria-errormessage']
537
- },
538
- owned: null,
539
- nameFrom: ['author'],
540
- context: null,
541
- unsupported: false,
542
- allowedElements: ['section']
543
- },
544
- 'doc-acknowledgments': {
545
- type: 'landmark',
546
- attributes: {
547
- allowed: ['aria-expanded', 'aria-errormessage']
548
- },
549
- owned: null,
550
- nameFrom: ['author'],
551
- context: null,
552
- unsupported: false,
553
- allowedElements: ['section']
554
- },
555
- 'doc-afterword': {
556
- type: 'landmark',
557
- attributes: {
558
- allowed: ['aria-expanded', 'aria-errormessage']
559
- },
560
- owned: null,
561
- nameFrom: ['author'],
562
- context: null,
563
- unsupported: false,
564
- allowedElements: ['section']
565
- },
566
- 'doc-appendix': {
567
- type: 'landmark',
568
- attributes: {
569
- allowed: ['aria-expanded', 'aria-errormessage']
570
- },
571
- owned: null,
572
- nameFrom: ['author'],
573
- context: null,
574
- unsupported: false,
575
- allowedElements: ['section']
576
- },
577
- 'doc-backlink': {
578
- type: 'link',
579
- attributes: {
580
- allowed: ['aria-expanded', 'aria-errormessage']
581
- },
582
- owned: null,
583
- nameFrom: ['author', 'contents'],
584
- context: null,
585
- unsupported: false,
586
- allowedElements: [
587
- {
588
- nodeName: 'a',
589
- attributes: {
590
- href: isNotNull
591
- }
592
- }
593
- ]
594
- },
595
- 'doc-biblioentry': {
596
- type: 'listitem',
597
- attributes: {
598
- allowed: [
599
- 'aria-expanded',
600
- 'aria-level',
601
- 'aria-posinset',
602
- 'aria-setsize',
603
- 'aria-errormessage'
604
- ]
605
- },
606
- owned: null,
607
- nameFrom: ['author'],
608
- context: ['doc-bibliography'],
609
- unsupported: false,
610
- allowedElements: ['li']
611
- },
612
- 'doc-bibliography': {
613
- type: 'landmark',
614
- attributes: {
615
- allowed: ['aria-expanded', 'aria-errormessage']
616
- },
617
- owned: {
618
- one: ['doc-biblioentry']
619
- },
620
- nameFrom: ['author'],
621
- context: null,
622
- unsupported: false,
623
- allowedElements: ['section']
624
- },
625
- 'doc-biblioref': {
626
- type: 'link',
627
- attributes: {
628
- allowed: ['aria-expanded', 'aria-errormessage']
629
- },
630
- owned: null,
631
- nameFrom: ['author', 'contents'],
632
- context: null,
633
- unsupported: false,
634
- allowedElements: [
635
- {
636
- nodeName: 'a',
637
- attributes: {
638
- href: isNotNull
639
- }
640
- }
641
- ]
642
- },
643
- 'doc-chapter': {
644
- type: 'landmark',
645
- attributes: {
646
- allowed: ['aria-expanded', 'aria-errormessage']
647
- },
648
- owned: null,
649
- namefrom: ['author'],
650
- context: null,
651
- unsupported: false,
652
- allowedElements: ['section']
653
- },
654
- 'doc-colophon': {
655
- type: 'section',
656
- attributes: {
657
- allowed: ['aria-expanded', 'aria-errormessage']
658
- },
659
- owned: null,
660
- namefrom: ['author'],
661
- context: null,
662
- unsupported: false,
663
- allowedElements: ['section']
664
- },
665
- 'doc-conclusion': {
666
- type: 'landmark',
667
- attributes: {
668
- allowed: ['aria-expanded', 'aria-errormessage']
669
- },
670
- owned: null,
671
- namefrom: ['author'],
672
- context: null,
673
- unsupported: false,
674
- allowedElements: ['section']
675
- },
676
- 'doc-cover': {
677
- type: 'img',
678
- attributes: {
679
- allowed: ['aria-expanded', 'aria-errormessage']
680
- },
681
- owned: null,
682
- namefrom: ['author'],
683
- context: null,
684
- unsupported: false
685
- },
686
- 'doc-credit': {
687
- type: 'section',
688
- attributes: {
689
- allowed: ['aria-expanded', 'aria-errormessage']
690
- },
691
- owned: null,
692
- namefrom: ['author'],
693
- context: null,
694
- unsupported: false,
695
- allowedElements: ['section']
696
- },
697
- 'doc-credits': {
698
- type: 'landmark',
699
- attributes: {
700
- allowed: ['aria-expanded', 'aria-errormessage']
701
- },
702
- owned: null,
703
- namefrom: ['author'],
704
- context: null,
705
- unsupported: false,
706
- allowedElements: ['section']
707
- },
708
- 'doc-dedication': {
709
- type: 'section',
710
- attributes: {
711
- allowed: ['aria-expanded', 'aria-errormessage']
712
- },
713
- owned: null,
714
- namefrom: ['author'],
715
- context: null,
716
- unsupported: false,
717
- allowedElements: ['section']
718
- },
719
- 'doc-endnote': {
720
- type: 'listitem',
721
- attributes: {
722
- allowed: [
723
- 'aria-expanded',
724
- 'aria-level',
725
- 'aria-posinset',
726
- 'aria-setsize',
727
- 'aria-errormessage'
728
- ]
729
- },
730
- owned: null,
731
- namefrom: ['author'],
732
- context: ['doc-endnotes'],
733
- unsupported: false,
734
- allowedElements: ['li']
735
- },
736
- 'doc-endnotes': {
737
- type: 'landmark',
738
- attributes: {
739
- allowed: ['aria-expanded', 'aria-errormessage']
740
- },
741
- owned: {
742
- one: ['doc-endnote']
743
- },
744
- namefrom: ['author'],
745
- context: null,
746
- unsupported: false,
747
- allowedElements: ['section']
748
- },
749
- 'doc-epigraph': {
750
- type: 'section',
751
- attributes: {
752
- allowed: ['aria-expanded', 'aria-errormessage']
753
- },
754
- owned: null,
755
- namefrom: ['author'],
756
- context: null,
757
- unsupported: false
758
- },
759
- 'doc-epilogue': {
760
- type: 'landmark',
761
- attributes: {
762
- allowed: ['aria-expanded', 'aria-errormessage']
763
- },
764
- owned: null,
765
- namefrom: ['author'],
766
- context: null,
767
- unsupported: false,
768
- allowedElements: ['section']
769
- },
770
- 'doc-errata': {
771
- type: 'landmark',
772
- attributes: {
773
- allowed: ['aria-expanded', 'aria-errormessage']
774
- },
775
- owned: null,
776
- namefrom: ['author'],
777
- context: null,
778
- unsupported: false,
779
- allowedElements: ['section']
780
- },
781
- 'doc-example': {
782
- type: 'section',
783
- attributes: {
784
- allowed: ['aria-expanded', 'aria-errormessage']
785
- },
786
- owned: null,
787
- namefrom: ['author'],
788
- context: null,
789
- unsupported: false,
790
- allowedElements: ['aside', 'section']
791
- },
792
- 'doc-footnote': {
793
- type: 'section',
794
- attributes: {
795
- allowed: ['aria-expanded', 'aria-errormessage']
796
- },
797
- owned: null,
798
- namefrom: ['author'],
799
- context: null,
800
- unsupported: false,
801
- allowedElements: ['aside', 'footer', 'header']
802
- },
803
- 'doc-foreword': {
804
- type: 'landmark',
805
- attributes: {
806
- allowed: ['aria-expanded', 'aria-errormessage']
807
- },
808
- owned: null,
809
- namefrom: ['author'],
810
- context: null,
811
- unsupported: false,
812
- allowedElements: ['section']
813
- },
814
- 'doc-glossary': {
815
- type: 'landmark',
816
- attributes: {
817
- allowed: ['aria-expanded', 'aria-errormessage']
818
- },
819
- owned: ['term', 'definition'],
820
- namefrom: ['author'],
821
- context: null,
822
- unsupported: false,
823
- allowedElements: ['dl']
824
- },
825
- 'doc-glossref': {
826
- type: 'link',
827
- attributes: {
828
- allowed: ['aria-expanded', 'aria-errormessage']
829
- },
830
- owned: null,
831
- namefrom: ['author', 'contents'],
832
- context: null,
833
- unsupported: false,
834
- allowedElements: [
835
- {
836
- nodeName: 'a',
837
- attributes: {
838
- href: isNotNull
839
- }
840
- }
841
- ]
842
- },
843
- 'doc-index': {
844
- type: 'navigation',
845
- attributes: {
846
- allowed: ['aria-expanded', 'aria-errormessage']
847
- },
848
- owned: null,
849
- namefrom: ['author'],
850
- context: null,
851
- unsupported: false,
852
- allowedElements: ['nav', 'section']
853
- },
854
- 'doc-introduction': {
855
- type: 'landmark',
856
- attributes: {
857
- allowed: ['aria-expanded', 'aria-errormessage']
858
- },
859
- owned: null,
860
- namefrom: ['author'],
861
- context: null,
862
- unsupported: false,
863
- allowedElements: ['section']
864
- },
865
- 'doc-noteref': {
866
- type: 'link',
867
- attributes: {
868
- allowed: ['aria-expanded']
869
- },
870
- owned: null,
871
- namefrom: ['author', 'contents'],
872
- context: null,
873
- unsupported: false,
874
- allowedElements: [
875
- {
876
- nodeName: 'a',
877
- attributes: {
878
- href: isNotNull
879
- }
880
- }
881
- ]
882
- },
883
- 'doc-notice': {
884
- type: 'note',
885
- attributes: {
886
- allowed: ['aria-expanded']
887
- },
888
- owned: null,
889
- namefrom: ['author'],
890
- context: null,
891
- unsupported: false,
892
- allowedElements: ['section']
893
- },
894
- 'doc-pagebreak': {
895
- type: 'separator',
896
- attributes: {
897
- allowed: ['aria-expanded']
898
- },
899
- owned: null,
900
- namefrom: ['author'],
901
- context: null,
902
- unsupported: false,
903
- allowedElements: ['hr']
904
- },
905
- 'doc-pagelist': {
906
- type: 'navigation',
907
- attributes: {
908
- allowed: ['aria-expanded']
909
- },
910
- owned: null,
911
- namefrom: ['author'],
912
- context: null,
913
- unsupported: false,
914
- allowedElements: ['nav', 'section']
915
- },
916
- 'doc-part': {
917
- type: 'landmark',
918
- attributes: {
919
- allowed: ['aria-expanded']
920
- },
921
- owned: null,
922
- namefrom: ['author'],
923
- context: null,
924
- unsupported: false,
925
- allowedElements: ['section']
926
- },
927
- 'doc-preface': {
928
- type: 'landmark',
929
- attributes: {
930
- allowed: ['aria-expanded']
931
- },
932
- owned: null,
933
- namefrom: ['author'],
934
- context: null,
935
- unsupported: false,
936
- allowedElements: ['section']
937
- },
938
- 'doc-prologue': {
939
- type: 'landmark',
940
- attributes: {
941
- allowed: ['aria-expanded', 'aria-errormessage']
942
- },
943
- owned: null,
944
- namefrom: ['author'],
945
- context: null,
946
- unsupported: false,
947
- allowedElements: ['section']
948
- },
949
- 'doc-pullquote': {
950
- type: 'none',
951
- attributes: {
952
- allowed: ['aria-expanded']
953
- },
954
- owned: null,
955
- namefrom: ['author'],
956
- context: null,
957
- unsupported: false,
958
- allowedElements: ['aside', 'section']
959
- },
960
- 'doc-qna': {
961
- type: 'section',
962
- attributes: {
963
- allowed: ['aria-expanded']
964
- },
965
- owned: null,
966
- namefrom: ['author'],
967
- context: null,
968
- unsupported: false,
969
- allowedElements: ['section']
970
- },
971
- 'doc-subtitle': {
972
- type: 'sectionhead',
973
- attributes: {
974
- allowed: ['aria-expanded']
975
- },
976
- owned: null,
977
- namefrom: ['author'],
978
- context: null,
979
- unsupported: false,
980
- allowedElements: {
981
- nodeName: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
982
- }
983
- },
984
- 'doc-tip': {
985
- type: 'note',
986
- attributes: {
987
- allowed: ['aria-expanded']
988
- },
989
- owned: null,
990
- namefrom: ['author'],
991
- context: null,
992
- unsupported: false,
993
- allowedElements: ['aside']
994
- },
995
- 'doc-toc': {
996
- type: 'navigation',
997
- attributes: {
998
- allowed: ['aria-expanded', 'aria-errormessage']
999
- },
1000
- owned: null,
1001
- namefrom: ['author'],
1002
- context: null,
1003
- unsupported: false,
1004
- allowedElements: ['nav', 'section']
1005
- },
1006
- feed: {
1007
- type: 'structure',
1008
- attributes: {
1009
- allowed: ['aria-expanded', 'aria-errormessage']
1010
- },
1011
- owned: {
1012
- one: ['article']
1013
- },
1014
- nameFrom: ['author'],
1015
- context: null,
1016
- unsupported: false,
1017
- allowedElements: ['article', 'aside', 'section']
1018
- },
1019
- figure: {
1020
- type: 'structure',
1021
- unsupported: false
1022
- },
1023
- form: {
1024
- type: 'landmark',
1025
- attributes: {
1026
- allowed: ['aria-expanded', 'aria-errormessage']
1027
- },
1028
- owned: null,
1029
- nameFrom: ['author'],
1030
- context: null,
1031
- implicit: ['form'],
1032
- unsupported: false
1033
- },
1034
- grid: {
1035
- type: 'composite',
1036
- attributes: {
1037
- allowed: [
1038
- 'aria-activedescendant',
1039
- 'aria-expanded',
1040
- 'aria-colcount',
1041
- 'aria-level',
1042
- 'aria-multiselectable',
1043
- 'aria-readonly',
1044
- 'aria-rowcount',
1045
- 'aria-errormessage'
1046
- ]
1047
- },
1048
- owned: {
1049
- one: ['rowgroup', 'row']
1050
- },
1051
- nameFrom: ['author'],
1052
- context: null,
1053
- implicit: ['table'],
1054
- unsupported: false
1055
- },
1056
- gridcell: {
1057
- type: 'widget',
1058
- attributes: {
1059
- allowed: [
1060
- 'aria-colindex',
1061
- 'aria-colspan',
1062
- 'aria-expanded',
1063
- 'aria-rowindex',
1064
- 'aria-rowspan',
1065
- 'aria-selected',
1066
- 'aria-readonly',
1067
- 'aria-required',
1068
- 'aria-errormessage'
1069
- ]
1070
- },
1071
- owned: null,
1072
- nameFrom: ['author', 'contents'],
1073
- context: ['row'],
1074
- implicit: ['td', 'th'],
1075
- unsupported: false
1076
- },
1077
- group: {
1078
- type: 'structure',
1079
- attributes: {
1080
- allowed: ['aria-activedescendant', 'aria-expanded', 'aria-errormessage']
1081
- },
1082
- owned: null,
1083
- nameFrom: ['author'],
1084
- context: null,
1085
- implicit: ['details', 'optgroup'],
1086
- unsupported: false,
1087
- allowedElements: [
1088
- 'dl',
1089
- 'figcaption',
1090
- 'fieldset',
1091
- 'figure',
1092
- 'footer',
1093
- 'header',
1094
- 'ol',
1095
- 'ul'
1096
- ]
1097
- },
1098
- heading: {
1099
- type: 'structure',
1100
- attributes: {
1101
- required: ['aria-level'],
1102
- allowed: ['aria-expanded', 'aria-errormessage']
1103
- },
1104
- owned: null,
1105
- nameFrom: ['author', 'contents'],
1106
- context: null,
1107
- implicit: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
1108
- unsupported: false
1109
- },
1110
- img: {
1111
- type: 'structure',
1112
- attributes: {
1113
- allowed: ['aria-expanded', 'aria-errormessage']
1114
- },
1115
- owned: null,
1116
- nameFrom: ['author'],
1117
- context: null,
1118
- implicit: ['img'],
1119
- unsupported: false,
1120
- allowedElements: ['embed', 'iframe', 'object', 'svg']
1121
- },
1122
- input: {
1123
- nameFrom: ['author'],
1124
- type: 'abstract',
1125
- unsupported: false
1126
- },
1127
- landmark: {
1128
- nameFrom: ['author'],
1129
- type: 'abstract',
1130
- unsupported: false
1131
- },
1132
- link: {
1133
- type: 'widget',
1134
- attributes: {
1135
- allowed: ['aria-expanded', 'aria-errormessage']
1136
- },
1137
- owned: null,
1138
- nameFrom: ['author', 'contents'],
1139
- context: null,
1140
- implicit: ['a[href]'],
1141
- unsupported: false,
1142
- allowedElements: [
1143
- 'button',
1144
- {
1145
- nodeName: 'input',
1146
- properties: {
1147
- type: ['image', 'button']
1148
- }
1149
- }
1150
- ]
1151
- },
1152
- list: {
1153
- type: 'structure',
1154
- attributes: {
1155
- allowed: ['aria-expanded', 'aria-errormessage']
1156
- },
1157
- owned: {
1158
- all: ['listitem']
1159
- },
1160
- nameFrom: ['author'],
1161
- context: null,
1162
- implicit: ['ol', 'ul', 'dl'],
1163
- unsupported: false
1164
- },
1165
- listbox: {
1166
- type: 'composite',
1167
- attributes: {
1168
- allowed: [
1169
- 'aria-activedescendant',
1170
- 'aria-multiselectable',
1171
- 'aria-readonly',
1172
- 'aria-required',
1173
- 'aria-expanded',
1174
- 'aria-orientation',
1175
- 'aria-errormessage'
1176
- ]
1177
- },
1178
- owned: {
1179
- all: ['option']
1180
- },
1181
- nameFrom: ['author'],
1182
- context: null,
1183
- implicit: ['select'],
1184
- unsupported: false,
1185
- allowedElements: ['ol', 'ul']
1186
- },
1187
- listitem: {
1188
- type: 'structure',
1189
- attributes: {
1190
- allowed: [
1191
- 'aria-level',
1192
- 'aria-posinset',
1193
- 'aria-setsize',
1194
- 'aria-expanded',
1195
- 'aria-errormessage'
1196
- ]
1197
- },
1198
- owned: null,
1199
- nameFrom: ['author', 'contents'],
1200
- context: ['list'],
1201
- implicit: ['li', 'dt'],
1202
- unsupported: false
1203
- },
1204
- log: {
1205
- type: 'widget',
1206
- attributes: {
1207
- allowed: ['aria-expanded', 'aria-errormessage']
1208
- },
1209
- owned: null,
1210
- nameFrom: ['author'],
1211
- context: null,
1212
- unsupported: false,
1213
- allowedElements: ['section']
1214
- },
1215
- main: {
1216
- type: 'landmark',
1217
- attributes: {
1218
- allowed: ['aria-expanded', 'aria-errormessage']
1219
- },
1220
- owned: null,
1221
- nameFrom: ['author'],
1222
- context: null,
1223
- implicit: ['main'],
1224
- unsupported: false,
1225
- allowedElements: ['article', 'section']
1226
- },
1227
- marquee: {
1228
- type: 'widget',
1229
- attributes: {
1230
- allowed: ['aria-expanded', 'aria-errormessage']
1231
- },
1232
- owned: null,
1233
- nameFrom: ['author'],
1234
- context: null,
1235
- unsupported: false,
1236
- allowedElements: ['section']
1237
- },
1238
- math: {
1239
- type: 'structure',
1240
- attributes: {
1241
- allowed: ['aria-expanded', 'aria-errormessage']
1242
- },
1243
- owned: null,
1244
- nameFrom: ['author'],
1245
- context: null,
1246
- implicit: ['math'],
1247
- unsupported: false
1248
- },
1249
- menu: {
1250
- type: 'composite',
1251
- attributes: {
1252
- allowed: [
1253
- 'aria-activedescendant',
1254
- 'aria-expanded',
1255
- 'aria-orientation',
1256
- 'aria-errormessage'
1257
- ]
1258
- },
1259
- owned: {
1260
- one: ['menuitem', 'menuitemradio', 'menuitemcheckbox']
1261
- },
1262
- nameFrom: ['author'],
1263
- context: null,
1264
- implicit: ['menu[type="context"]'],
1265
- unsupported: false,
1266
- allowedElements: ['ol', 'ul']
1267
- },
1268
- menubar: {
1269
- type: 'composite',
1270
- attributes: {
1271
- allowed: [
1272
- 'aria-activedescendant',
1273
- 'aria-expanded',
1274
- 'aria-orientation',
1275
- 'aria-errormessage'
1276
- ]
1277
- },
1278
- owned: {
1279
- one: ['menuitem', 'menuitemradio', 'menuitemcheckbox']
1280
- },
1281
- nameFrom: ['author'],
1282
- context: null,
1283
- unsupported: false,
1284
- allowedElements: ['ol', 'ul']
1285
- },
1286
- menuitem: {
1287
- type: 'widget',
1288
- attributes: {
1289
- allowed: [
1290
- 'aria-posinset',
1291
- 'aria-setsize',
1292
- 'aria-expanded',
1293
- 'aria-errormessage'
1294
- ]
1295
- },
1296
- owned: null,
1297
- nameFrom: ['author', 'contents'],
1298
- context: ['menu', 'menubar'],
1299
- implicit: ['menuitem[type="command"]'],
1300
- unsupported: false,
1301
- allowedElements: [
1302
- 'button',
1303
- 'li',
1304
- {
1305
- nodeName: 'iput',
1306
- properties: {
1307
- type: ['image', 'button']
1308
- }
1309
- },
1310
- {
1311
- nodeName: 'a',
1312
- attributes: {
1313
- href: isNotNull
1314
- }
1315
- }
1316
- ]
1317
- },
1318
- menuitemcheckbox: {
1319
- type: 'widget',
1320
- attributes: {
1321
- allowed: [
1322
- 'aria-checked',
1323
- 'aria-posinset',
1324
- 'aria-setsize',
1325
- 'aria-errormessage'
1326
- ]
1327
- },
1328
- owned: null,
1329
- nameFrom: ['author', 'contents'],
1330
- context: ['menu', 'menubar'],
1331
- implicit: ['menuitem[type="checkbox"]'],
1332
- unsupported: false,
1333
- allowedElements: [
1334
- {
1335
- nodeName: ['button', 'li']
1336
- },
1337
- {
1338
- nodeName: 'input',
1339
- properties: {
1340
- type: ['checkbox', 'image', 'button']
1341
- }
1342
- },
1343
- {
1344
- nodeName: 'a',
1345
- attributes: {
1346
- href: isNotNull
1347
- }
1348
- }
1349
- ]
1350
- },
1351
- menuitemradio: {
1352
- type: 'widget',
1353
- attributes: {
1354
- allowed: [
1355
- 'aria-checked',
1356
- 'aria-selected',
1357
- 'aria-posinset',
1358
- 'aria-setsize',
1359
- 'aria-errormessage'
1360
- ]
1361
- },
1362
- owned: null,
1363
- nameFrom: ['author', 'contents'],
1364
- context: ['menu', 'menubar'],
1365
- implicit: ['menuitem[type="radio"]'],
1366
- unsupported: false,
1367
- allowedElements: [
1368
- {
1369
- nodeName: ['button', 'li']
1370
- },
1371
- {
1372
- nodeName: 'input',
1373
- properties: {
1374
- type: ['image', 'button', 'radio']
1375
- }
1376
- },
1377
- {
1378
- nodeName: 'a',
1379
- attributes: {
1380
- href: isNotNull
1381
- }
1382
- }
1383
- ]
1384
- },
1385
- navigation: {
1386
- type: 'landmark',
1387
- attributes: {
1388
- allowed: ['aria-expanded', 'aria-errormessage']
1389
- },
1390
- owned: null,
1391
- nameFrom: ['author'],
1392
- context: null,
1393
- implicit: ['nav'],
1394
- unsupported: false,
1395
- allowedElements: ['section']
1396
- },
1397
- none: {
1398
- type: 'structure',
1399
- attributes: null,
1400
- owned: null,
1401
- nameFrom: ['author'],
1402
- context: null,
1403
- unsupported: false,
1404
- allowedElements: [
1405
- {
1406
- nodeName: [
1407
- 'article',
1408
- 'aside',
1409
- 'dl',
1410
- 'embed',
1411
- 'figcaption',
1412
- 'fieldset',
1413
- 'figure',
1414
- 'footer',
1415
- 'form',
1416
- 'h1',
1417
- 'h2',
1418
- 'h3',
1419
- 'h4',
1420
- 'h5',
1421
- 'h6',
1422
- 'header',
1423
- 'iframe',
1424
- 'li',
1425
- 'ol',
1426
- 'section',
1427
- 'ul'
1428
- ]
1429
- },
1430
- {
1431
- nodeName: 'img',
1432
- attributes: {
1433
- alt: isNotNull
1434
- }
1435
- }
1436
- ]
1437
- },
1438
- note: {
1439
- type: 'structure',
1440
- attributes: {
1441
- allowed: ['aria-expanded', 'aria-errormessage']
1442
- },
1443
- owned: null,
1444
- nameFrom: ['author'],
1445
- context: null,
1446
- unsupported: false,
1447
- allowedElements: ['aside']
1448
- },
1449
- option: {
1450
- type: 'widget',
1451
- attributes: {
1452
- allowed: [
1453
- 'aria-selected',
1454
- 'aria-posinset',
1455
- 'aria-setsize',
1456
- 'aria-checked',
1457
- 'aria-errormessage'
1458
- ]
1459
- },
1460
- owned: null,
1461
- nameFrom: ['author', 'contents'],
1462
- context: ['listbox'],
1463
- implicit: ['option'],
1464
- unsupported: false,
1465
- allowedElements: [
1466
- {
1467
- nodeName: ['button', 'li']
1468
- },
1469
- {
1470
- nodeName: 'input',
1471
- properties: {
1472
- type: ['checkbox', 'button']
1473
- }
1474
- },
1475
- {
1476
- nodeName: 'a',
1477
- attributes: {
1478
- href: isNotNull
1479
- }
1480
- }
1481
- ]
1482
- },
1483
- presentation: {
1484
- type: 'structure',
1485
- attributes: null,
1486
- owned: null,
1487
- nameFrom: ['author'],
1488
- context: null,
1489
- unsupported: false,
1490
- allowedElements: [
1491
- {
1492
- nodeName: [
1493
- 'article',
1494
- 'aside',
1495
- 'dl',
1496
- 'embed',
1497
- 'figcaption',
1498
- 'fieldset',
1499
- 'figure',
1500
- 'footer',
1501
- 'form',
1502
- 'h1',
1503
- 'h2',
1504
- 'h3',
1505
- 'h4',
1506
- 'h5',
1507
- 'h6',
1508
- 'header',
1509
- 'iframe',
1510
- 'li',
1511
- 'ol',
1512
- 'section',
1513
- 'ul'
1514
- ]
1515
- },
1516
- {
1517
- nodeName: 'img',
1518
- attributes: {
1519
- alt: isNotNull
1520
- }
1521
- }
1522
- ]
1523
- },
1524
- progressbar: {
1525
- type: 'widget',
1526
- attributes: {
1527
- allowed: [
1528
- 'aria-valuetext',
1529
- 'aria-valuenow',
1530
- 'aria-valuemax',
1531
- 'aria-valuemin',
1532
- 'aria-expanded',
1533
- 'aria-errormessage'
1534
- ]
1535
- },
1536
- owned: null,
1537
- nameFrom: ['author'],
1538
- context: null,
1539
- implicit: ['progress'],
1540
- unsupported: false
1541
- },
1542
- radio: {
1543
- type: 'widget',
1544
- attributes: {
1545
- allowed: [
1546
- 'aria-selected',
1547
- 'aria-posinset',
1548
- 'aria-setsize',
1549
- 'aria-required',
1550
- 'aria-errormessage',
1551
- 'aria-checked'
1552
- ]
1553
- },
1554
- owned: null,
1555
- nameFrom: ['author', 'contents'],
1556
- context: null,
1557
- implicit: ['input[type="radio"]'],
1558
- unsupported: false,
1559
- allowedElements: [
1560
- {
1561
- nodeName: ['button', 'li']
1562
- },
1563
- {
1564
- nodeName: 'input',
1565
- properties: {
1566
- type: ['image', 'button']
1567
- }
1568
- }
1569
- ]
1570
- },
1571
- radiogroup: {
1572
- type: 'composite',
1573
- attributes: {
1574
- allowed: [
1575
- 'aria-activedescendant',
1576
- 'aria-required',
1577
- 'aria-expanded',
1578
- 'aria-readonly',
1579
- 'aria-errormessage'
1580
- ]
1581
- },
1582
- owned: {
1583
- all: ['radio']
1584
- },
1585
- nameFrom: ['author'],
1586
- context: null,
1587
- unsupported: false,
1588
- allowedElements: {
1589
- nodeName: ['ol', 'ul']
1590
- }
1591
- },
1592
- range: {
1593
- nameFrom: ['author'],
1594
- type: 'abstract',
1595
- // @marcysutton, @wilco
1596
- // - there is no unsupported here (noticed when resolving conflicts) from PR - https://github.com/dequelabs/axe-core/pull/1064
1597
- // - https://github.com/dequelabs/axe-core/pull/1064/files#diff-ec67bb6113bfd9a900ee27ecef942f74R1229
1598
- // - adding unsupported flag (false)
1599
- unsupported: false
1600
- },
1601
- region: {
1602
- type: 'landmark',
1603
- attributes: {
1604
- allowed: ['aria-expanded', 'aria-errormessage']
1605
- },
1606
- owned: null,
1607
- nameFrom: ['author'],
1608
- context: null,
1609
- implicit: [
1610
- 'section[aria-label]',
1611
- 'section[aria-labelledby]',
1612
- 'section[title]'
1613
- ],
1614
- unsupported: false,
1615
- allowedElements: {
1616
- nodeName: ['article', 'aside']
1617
- }
1618
- },
1619
- roletype: {
1620
- type: 'abstract',
1621
- unsupported: false
1622
- },
1623
- row: {
1624
- type: 'structure',
1625
- attributes: {
1626
- allowed: [
1627
- 'aria-activedescendant',
1628
- 'aria-colindex',
1629
- 'aria-expanded',
1630
- 'aria-level',
1631
- 'aria-selected',
1632
- 'aria-rowindex',
1633
- 'aria-errormessage'
1634
- ]
1635
- },
1636
- owned: {
1637
- one: ['cell', 'columnheader', 'rowheader', 'gridcell']
1638
- },
1639
- nameFrom: ['author', 'contents'],
1640
- context: ['rowgroup', 'grid', 'treegrid', 'table'],
1641
- implicit: ['tr'],
1642
- unsupported: false
1643
- },
1644
- rowgroup: {
1645
- type: 'structure',
1646
- attributes: {
1647
- allowed: ['aria-activedescendant', 'aria-expanded', 'aria-errormessage']
1648
- },
1649
- owned: {
1650
- all: ['row']
1651
- },
1652
- nameFrom: ['author', 'contents'],
1653
- context: ['grid', 'table', 'treegrid'],
1654
- implicit: ['tbody', 'thead', 'tfoot'],
1655
- unsupported: false
1656
- },
1657
- rowheader: {
1658
- type: 'structure',
1659
- attributes: {
1660
- allowed: [
1661
- 'aria-colindex',
1662
- 'aria-colspan',
1663
- 'aria-expanded',
1664
- 'aria-rowindex',
1665
- 'aria-rowspan',
1666
- 'aria-required',
1667
- 'aria-readonly',
1668
- 'aria-selected',
1669
- 'aria-sort',
1670
- 'aria-errormessage'
1671
- ]
1672
- },
1673
- owned: null,
1674
- nameFrom: ['author', 'contents'],
1675
- context: ['row'],
1676
- implicit: ['th'],
1677
- unsupported: false
1678
- },
1679
- scrollbar: {
1680
- type: 'widget',
1681
- attributes: {
1682
- required: ['aria-controls', 'aria-valuenow'],
1683
- allowed: [
1684
- 'aria-valuetext',
1685
- 'aria-orientation',
1686
- 'aria-errormessage',
1687
- 'aria-valuemax',
1688
- 'aria-valuemin'
1689
- ]
1690
- },
1691
- owned: null,
1692
- nameFrom: ['author'],
1693
- context: null,
1694
- unsupported: false
1695
- },
1696
- search: {
1697
- type: 'landmark',
1698
- attributes: {
1699
- allowed: ['aria-expanded', 'aria-errormessage']
1700
- },
1701
- owned: null,
1702
- nameFrom: ['author'],
1703
- context: null,
1704
- unsupported: false,
1705
- allowedElements: {
1706
- nodeName: ['aside', 'form', 'section']
1707
- }
1708
- },
1709
- searchbox: {
1710
- type: 'widget',
1711
- attributes: {
1712
- allowed: [
1713
- 'aria-activedescendant',
1714
- 'aria-autocomplete',
1715
- 'aria-multiline',
1716
- 'aria-readonly',
1717
- 'aria-required',
1718
- 'aria-placeholder',
1719
- 'aria-errormessage'
1720
- ]
1721
- },
1722
- owned: null,
1723
- nameFrom: ['author'],
1724
- context: null,
1725
- implicit: ['input[type="search"]'],
1726
- unsupported: false,
1727
- allowedElements: {
1728
- nodeName: 'input',
1729
- properties: {
1730
- type: 'text'
1731
- }
1732
- }
1733
- },
1734
- section: {
1735
- nameFrom: ['author', 'contents'],
1736
- type: 'abstract',
1737
- unsupported: false
1738
- },
1739
- sectionhead: {
1740
- nameFrom: ['author', 'contents'],
1741
- type: 'abstract',
1742
- unsupported: false
1743
- },
1744
- select: {
1745
- nameFrom: ['author'],
1746
- type: 'abstract',
1747
- unsupported: false
1748
- },
1749
- separator: {
1750
- type: 'structure',
1751
- attributes: {
1752
- allowed: [
1753
- 'aria-expanded',
1754
- 'aria-orientation',
1755
- 'aria-valuenow',
1756
- 'aria-valuemax',
1757
- 'aria-valuemin',
1758
- 'aria-valuetext',
1759
- 'aria-errormessage'
1760
- ]
1761
- },
1762
- owned: null,
1763
- nameFrom: ['author'],
1764
- context: null,
1765
- implicit: ['hr'],
1766
- unsupported: false,
1767
- allowedElements: ['li']
1768
- },
1769
- slider: {
1770
- type: 'widget',
1771
- attributes: {
1772
- allowed: [
1773
- 'aria-valuetext',
1774
- 'aria-orientation',
1775
- 'aria-readonly',
1776
- 'aria-errormessage',
1777
- 'aria-valuemax',
1778
- 'aria-valuemin'
1779
- ],
1780
- required: ['aria-valuenow']
1781
- },
1782
- owned: null,
1783
- nameFrom: ['author'],
1784
- context: null,
1785
- implicit: ['input[type="range"]'],
1786
- unsupported: false
1787
- },
1788
- spinbutton: {
1789
- type: 'widget',
1790
- attributes: {
1791
- allowed: [
1792
- 'aria-valuetext',
1793
- 'aria-required',
1794
- 'aria-readonly',
1795
- 'aria-errormessage',
1796
- 'aria-valuemax',
1797
- 'aria-valuemin'
1798
- ],
1799
- required: ['aria-valuenow']
1800
- },
1801
- owned: null,
1802
- nameFrom: ['author'],
1803
- context: null,
1804
- implicit: ['input[type="number"]'],
1805
- unsupported: false,
1806
- allowedElements: {
1807
- nodeName: 'input',
1808
- properties: {
1809
- type: ['text', 'tel']
1810
- }
1811
- }
1812
- },
1813
- status: {
1814
- type: 'widget',
1815
- attributes: {
1816
- allowed: ['aria-expanded', 'aria-errormessage']
1817
- },
1818
- owned: null,
1819
- nameFrom: ['author'],
1820
- context: null,
1821
- implicit: ['output'],
1822
- unsupported: false,
1823
- allowedElements: ['section']
1824
- },
1825
- structure: {
1826
- type: 'abstract',
1827
- unsupported: false
1828
- },
1829
- switch: {
1830
- type: 'widget',
1831
- attributes: {
1832
- allowed: ['aria-errormessage'],
1833
- required: ['aria-checked']
1834
- },
1835
- owned: null,
1836
- nameFrom: ['author', 'contents'],
1837
- context: null,
1838
- unsupported: false,
1839
- allowedElements: [
1840
- 'button',
1841
- {
1842
- nodeName: 'input',
1843
- properties: {
1844
- type: ['checkbox', 'image', 'button']
1845
- }
1846
- },
1847
- {
1848
- nodeName: 'a',
1849
- attributes: {
1850
- href: isNotNull
1851
- }
1852
- }
1853
- ]
1854
- },
1855
- tab: {
1856
- type: 'widget',
1857
- attributes: {
1858
- allowed: [
1859
- 'aria-selected',
1860
- 'aria-expanded',
1861
- 'aria-setsize',
1862
- 'aria-posinset',
1863
- 'aria-errormessage'
1864
- ]
1865
- },
1866
- owned: null,
1867
- nameFrom: ['author', 'contents'],
1868
- context: ['tablist'],
1869
- unsupported: false,
1870
- allowedElements: [
1871
- {
1872
- nodeName: ['button', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li']
1873
- },
1874
- {
1875
- nodeName: 'input',
1876
- properties: {
1877
- type: 'button'
1878
- }
1879
- },
1880
- {
1881
- nodeName: 'a',
1882
- attributes: {
1883
- href: isNotNull
1884
- }
1885
- }
1886
- ]
1887
- },
1888
- table: {
1889
- type: 'structure',
1890
- attributes: {
1891
- allowed: ['aria-colcount', 'aria-rowcount', 'aria-errormessage']
1892
- },
1893
- owned: {
1894
- one: ['rowgroup', 'row']
1895
- },
1896
- nameFrom: ['author'],
1897
- context: null,
1898
- implicit: ['table'],
1899
- unsupported: false
1900
- },
1901
- tablist: {
1902
- type: 'composite',
1903
- attributes: {
1904
- allowed: [
1905
- 'aria-activedescendant',
1906
- 'aria-expanded',
1907
- 'aria-level',
1908
- 'aria-multiselectable',
1909
- 'aria-orientation',
1910
- 'aria-errormessage'
1911
- ]
1912
- },
1913
- owned: {
1914
- all: ['tab']
1915
- },
1916
- nameFrom: ['author'],
1917
- context: null,
1918
- unsupported: false,
1919
- allowedElements: ['ol', 'ul']
1920
- },
1921
- tabpanel: {
1922
- type: 'widget',
1923
- attributes: {
1924
- allowed: ['aria-expanded', 'aria-errormessage']
1925
- },
1926
- owned: null,
1927
- nameFrom: ['author'],
1928
- context: null,
1929
- unsupported: false,
1930
- allowedElements: ['section']
1931
- },
1932
- term: {
1933
- type: 'structure',
1934
- attributes: {
1935
- allowed: ['aria-expanded', 'aria-errormessage']
1936
- },
1937
- owned: null,
1938
- nameFrom: ['author', 'contents'],
1939
- context: null,
1940
- implicit: ['dt'],
1941
- unsupported: false
1942
- },
1943
- textbox: {
1944
- type: 'widget',
1945
- attributes: {
1946
- allowed: [
1947
- 'aria-activedescendant',
1948
- 'aria-autocomplete',
1949
- 'aria-multiline',
1950
- 'aria-readonly',
1951
- 'aria-required',
1952
- 'aria-placeholder',
1953
- 'aria-errormessage'
1954
- ]
1955
- },
1956
- owned: null,
1957
- nameFrom: ['author'],
1958
- context: null,
1959
- implicit: [
1960
- 'input[type="text"]',
1961
- 'input[type="email"]',
1962
- 'input[type="password"]',
1963
- 'input[type="tel"]',
1964
- 'input[type="url"]',
1965
- 'input:not([type])',
1966
- 'textarea'
1967
- ],
1968
- unsupported: false
1969
- },
1970
- timer: {
1971
- type: 'widget',
1972
- attributes: {
1973
- allowed: ['aria-expanded', 'aria-errormessage']
1974
- },
1975
- owned: null,
1976
- nameFrom: ['author'],
1977
- context: null,
1978
- unsupported: false
1979
- },
1980
- toolbar: {
1981
- type: 'structure',
1982
- attributes: {
1983
- allowed: [
1984
- 'aria-activedescendant',
1985
- 'aria-expanded',
1986
- 'aria-orientation',
1987
- 'aria-errormessage'
1988
- ]
1989
- },
1990
- owned: null,
1991
- nameFrom: ['author'],
1992
- context: null,
1993
- implicit: ['menu[type="toolbar"]'],
1994
- unsupported: false,
1995
- allowedElements: ['ol', 'ul']
1996
- },
1997
- tooltip: {
1998
- type: 'structure',
1999
- attributes: {
2000
- allowed: ['aria-expanded', 'aria-errormessage']
2001
- },
2002
- owned: null,
2003
- nameFrom: ['author', 'contents'],
2004
- context: null,
2005
- unsupported: false
2006
- },
2007
- tree: {
2008
- type: 'composite',
2009
- attributes: {
2010
- allowed: [
2011
- 'aria-activedescendant',
2012
- 'aria-multiselectable',
2013
- 'aria-required',
2014
- 'aria-expanded',
2015
- 'aria-orientation',
2016
- 'aria-errormessage'
2017
- ]
2018
- },
2019
- owned: {
2020
- all: ['treeitem']
2021
- },
2022
- nameFrom: ['author'],
2023
- context: null,
2024
- unsupported: false,
2025
- allowedElements: ['ol', 'ul']
2026
- },
2027
- treegrid: {
2028
- type: 'composite',
2029
- attributes: {
2030
- allowed: [
2031
- 'aria-activedescendant',
2032
- 'aria-colcount',
2033
- 'aria-expanded',
2034
- 'aria-level',
2035
- 'aria-multiselectable',
2036
- 'aria-readonly',
2037
- 'aria-required',
2038
- 'aria-rowcount',
2039
- 'aria-orientation',
2040
- 'aria-errormessage'
2041
- ]
2042
- },
2043
- owned: {
2044
- one: ['rowgroup', 'row']
2045
- },
2046
- nameFrom: ['author'],
2047
- context: null,
2048
- unsupported: false
2049
- },
2050
- treeitem: {
2051
- type: 'widget',
2052
- attributes: {
2053
- allowed: [
2054
- 'aria-checked',
2055
- 'aria-selected',
2056
- 'aria-expanded',
2057
- 'aria-level',
2058
- 'aria-posinset',
2059
- 'aria-setsize',
2060
- 'aria-errormessage'
2061
- ]
2062
- },
2063
- owned: null,
2064
- nameFrom: ['author', 'contents'],
2065
- context: ['group', 'tree'],
2066
- unsupported: false,
2067
- allowedElements: [
2068
- 'li',
2069
- {
2070
- nodeName: 'a',
2071
- attributes: {
2072
- href: isNotNull
2073
- }
2074
- }
2075
- ]
2076
- },
2077
- widget: {
2078
- type: 'abstract',
2079
- unsupported: false
2080
- },
2081
- window: {
2082
- nameFrom: ['author'],
2083
- type: 'abstract',
2084
- unsupported: false
2085
- }
2086
- };
2087
-
2088
- // Source: https://www.w3.org/TR/html-aria/
2089
- lookupTable.elementsAllowedNoRole = [
2090
- {
2091
- // Plain HTML nodes
2092
- nodeName: [
2093
- 'base',
2094
- 'body',
2095
- 'caption',
2096
- 'col',
2097
- 'colgroup',
2098
- 'datalist',
2099
- 'dd',
2100
- 'details',
2101
- 'dt',
2102
- 'head',
2103
- 'html',
2104
- 'keygen',
2105
- 'label',
2106
- 'legend',
2107
- 'main',
2108
- 'map',
2109
- 'math',
2110
- 'meta',
2111
- 'meter',
2112
- 'noscript',
2113
- 'optgroup',
2114
- 'param',
2115
- 'picture',
2116
- 'progress',
2117
- 'script',
2118
- 'source',
2119
- 'style',
2120
- 'template',
2121
- 'textarea',
2122
- 'title',
2123
- 'track'
2124
- ]
2125
- },
2126
- {
2127
- nodeName: 'area',
2128
- attributes: {
2129
- href: isNotNull
2130
- }
2131
- },
2132
- {
2133
- nodeName: 'input',
2134
- properties: {
2135
- type: [
2136
- 'color',
2137
- 'data',
2138
- 'datatime',
2139
- 'file',
2140
- 'hidden',
2141
- 'month',
2142
- 'number',
2143
- 'password',
2144
- 'range',
2145
- 'reset',
2146
- 'submit',
2147
- 'time',
2148
- 'week'
2149
- ]
2150
- }
2151
- },
2152
- {
2153
- nodeName: 'link',
2154
- attributes: {
2155
- href: isNotNull
2156
- }
2157
- },
2158
- {
2159
- nodeName: 'menu',
2160
- attributes: {
2161
- type: 'context'
2162
- }
2163
- },
2164
- {
2165
- nodeName: 'menuitem',
2166
- attributes: {
2167
- type: ['command', 'checkbox', 'radio']
2168
- }
2169
- },
2170
- {
2171
- nodeName: 'select',
2172
- condition: vNode => {
2173
- if (!(vNode instanceof axe.AbstractVirtualNode)) {
2174
- vNode = axe.utils.getNodeFromTree(vNode);
2175
- }
2176
-
2177
- return Number(vNode.attr('size')) > 1;
2178
- },
2179
- properties: {
2180
- multiple: true
2181
- }
2182
- },
2183
- // svg elements (below)
2184
- {
2185
- nodeName: [
2186
- 'clippath',
2187
- 'cursor',
2188
- 'defs',
2189
- 'desc',
2190
- 'feblend',
2191
- 'fecolormatrix',
2192
- 'fecomponenttransfer',
2193
- 'fecomposite',
2194
- 'feconvolvematrix',
2195
- 'fediffuselighting',
2196
- 'fedisplacementmap',
2197
- 'fedistantlight',
2198
- 'fedropshadow',
2199
- 'feflood',
2200
- 'fefunca',
2201
- 'fefuncb',
2202
- 'fefuncg',
2203
- 'fefuncr',
2204
- 'fegaussianblur',
2205
- 'feimage',
2206
- 'femerge',
2207
- 'femergenode',
2208
- 'femorphology',
2209
- 'feoffset',
2210
- 'fepointlight',
2211
- 'fespecularlighting',
2212
- 'fespotlight',
2213
- 'fetile',
2214
- 'feturbulence',
2215
- 'filter',
2216
- 'hatch',
2217
- 'hatchpath',
2218
- 'lineargradient',
2219
- 'marker',
2220
- 'mask',
2221
- 'meshgradient',
2222
- 'meshpatch',
2223
- 'meshrow',
2224
- 'metadata',
2225
- 'mpath',
2226
- 'pattern',
2227
- 'radialgradient',
2228
- 'solidcolor',
2229
- 'stop',
2230
- 'switch',
2231
- 'view'
2232
- ]
2233
- }
2234
- ];
2235
-
2236
- // Source: https://www.w3.org/TR/html-aria/
2237
- lookupTable.elementsAllowedAnyRole = [
2238
- {
2239
- nodeName: 'a',
2240
- attributes: {
2241
- href: isNull
2242
- }
2243
- },
2244
- {
2245
- nodeName: 'img',
2246
- attributes: {
2247
- alt: isNull
2248
- }
2249
- },
2250
- {
2251
- nodeName: [
2252
- 'abbr',
2253
- 'address',
2254
- 'canvas',
2255
- 'div',
2256
- 'p',
2257
- 'pre',
2258
- 'blockquote',
2259
- 'ins',
2260
- 'del',
2261
- 'output',
2262
- 'span',
2263
- 'table',
2264
- 'tbody',
2265
- 'thead',
2266
- 'tfoot',
2267
- 'td',
2268
- 'em',
2269
- 'strong',
2270
- 'small',
2271
- 's',
2272
- 'cite',
2273
- 'q',
2274
- 'dfn',
2275
- 'abbr',
2276
- 'time',
2277
- 'code',
2278
- 'var',
2279
- 'samp',
2280
- 'kbd',
2281
- 'sub',
2282
- 'sup',
2283
- 'i',
2284
- 'b',
2285
- 'u',
2286
- 'mark',
2287
- 'ruby',
2288
- 'rt',
2289
- 'rp',
2290
- 'bdi',
2291
- 'bdo',
2292
- 'br',
2293
- 'wbr',
2294
- 'th',
2295
- 'tr'
2296
- ]
2297
- }
2298
- ];
2299
-
2300
- lookupTable.evaluateRoleForElement = {
2301
- A: ({ node, out }) => {
2302
- if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
2303
- return true;
2304
- }
2305
- if (node.href.length) {
2306
- return out;
2307
- }
2308
- return true;
2309
- },
2310
- AREA: ({ node }) => !node.href,
2311
- BUTTON: ({ node, role, out }) => {
2312
- if (node.getAttribute('type') === 'menu') {
2313
- return role === 'menuitem';
2314
- }
2315
- return out;
2316
- },
2317
- IMG: ({ node, role, out }) => {
2318
- switch (node.alt) {
2319
- case null:
2320
- return out;
2321
- case '':
2322
- return role === 'presentation' || role === 'none';
2323
- default:
2324
- return role !== 'presentation' && role !== 'none';
2325
- }
2326
- },
2327
- INPUT: ({ node, role, out }) => {
2328
- switch (node.type) {
2329
- case 'button':
2330
- case 'image':
2331
- return out;
2332
- case 'checkbox':
2333
- if (role === 'button' && node.hasAttribute('aria-pressed')) {
2334
- return true;
2335
- }
2336
- return out;
2337
- case 'radio':
2338
- return role === 'menuitemradio';
2339
- case 'text':
2340
- return (
2341
- role === 'combobox' || role === 'searchbox' || role === 'spinbutton'
2342
- );
2343
- case 'tel':
2344
- return role === 'combobox' || role === 'spinbutton';
2345
- case 'url':
2346
- case 'search':
2347
- case 'email':
2348
- return role === 'combobox';
2349
- default:
2350
- return false;
2351
- }
2352
- },
2353
- LI: ({ node, out }) => {
2354
- const hasImplicitListitemRole = axe.utils.matchesSelector(
2355
- node,
2356
- 'ol li, ul li'
2357
- );
2358
- if (hasImplicitListitemRole) {
2359
- return out;
2360
- }
2361
- return true;
2362
- },
2363
- MENU: ({ node }) => {
2364
- if (node.getAttribute('type') === 'context') {
2365
- return false;
2366
- }
2367
- return true;
2368
- },
2369
- OPTION: ({ node }) => {
2370
- const withinOptionList = axe.utils.matchesSelector(
2371
- node,
2372
- 'select > option, datalist > option, optgroup > option'
2373
- );
2374
- return !withinOptionList;
2375
- },
2376
- SELECT: ({ node, role }) =>
2377
- !node.multiple && node.size <= 1 && role === 'menu',
2378
- SVG: ({ node, out }) => {
2379
- // if in svg context it all roles may be used
2380
- if (
2381
- node.parentNode &&
2382
- node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg'
2383
- ) {
2384
- return true;
2385
- }
2386
- return out;
2387
- }
2388
- };
2389
-
2390
- /**
2391
- * Note:
2392
- * Usage of `rolesOfType` is deprecated within the source code.
2393
- * Leaving this here for now, to keep support for custom rules.
2394
- */
2395
- lookupTable.rolesOfType = {
2396
- widget: [
2397
- 'button',
2398
- 'checkbox',
2399
- 'dialog',
2400
- 'gridcell',
2401
- 'link',
2402
- 'log',
2403
- 'marquee',
2404
- 'menuitem',
2405
- 'menuitemcheckbox',
2406
- 'menuitemradio',
2407
- 'option',
2408
- 'progressbar',
2409
- 'radio',
2410
- 'scrollbar',
2411
- 'searchbox',
2412
- 'slider',
2413
- 'spinbutton',
2414
- 'status',
2415
- 'switch',
2416
- 'tab',
2417
- 'tabpanel',
2418
- 'textbox',
2419
- 'timer',
2420
- 'tooltip',
2421
- 'tree',
2422
- 'treeitem'
2423
- ]
2424
- };