@surea11y/core 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +1 -1
  3. package/src/checks/automatic/aria-allowed-attr.js +2 -3
  4. package/src/checks/automatic/aria-allowed-role.js +2 -3
  5. package/src/checks/automatic/aria-braille-equivalent.js +3 -4
  6. package/src/checks/automatic/aria-conditional-attr.js +3 -4
  7. package/src/checks/automatic/aria-deprecated-role.js +2 -3
  8. package/src/checks/automatic/aria-prohibited-attr.js +2 -3
  9. package/src/checks/automatic/aria-prohibited-children.js +2 -3
  10. package/src/checks/automatic/aria-required-attr.js +2 -3
  11. package/src/checks/automatic/aria-required-children.js +2 -3
  12. package/src/checks/automatic/aria-required-parent.js +3 -4
  13. package/src/checks/automatic/aria-roles-valid.js +2 -3
  14. package/src/checks/automatic/aria-valid-attr-value.js +2 -3
  15. package/src/checks/automatic/aria-valid-attr.js +2 -3
  16. package/src/checks/automatic/autocomplete-valid.js +2 -3
  17. package/src/checks/automatic/avoid-inline-spacing.js +2 -3
  18. package/src/checks/automatic/binary-control-name-present.js +2 -3
  19. package/src/checks/automatic/button-name-present.js +14 -4
  20. package/src/checks/automatic/bypass-blocks-present.js +35 -7
  21. package/src/checks/automatic/combobox-name-present.js +2 -3
  22. package/src/checks/automatic/definition-list-children-valid.js +2 -3
  23. package/src/checks/automatic/deprecated-elements-not-used.js +2 -3
  24. package/src/checks/automatic/dialog-name-present.js +2 -3
  25. package/src/checks/automatic/dlitem-parent-valid.js +2 -3
  26. package/src/checks/automatic/form-control-single-label.js +2 -3
  27. package/src/checks/automatic/iframe-focusable-content.js +2 -3
  28. package/src/checks/automatic/iframe-name-present.js +2 -3
  29. package/src/checks/automatic/iframe-title-unique.js +2 -3
  30. package/src/checks/automatic/label-in-name.js +7 -8
  31. package/src/checks/automatic/link-in-text-block.js +2 -3
  32. package/src/checks/automatic/link-name-present.js +16 -4
  33. package/src/checks/automatic/list-children-valid.js +2 -3
  34. package/src/checks/automatic/listbox-name-present.js +2 -3
  35. package/src/checks/automatic/listitem-parent-valid.js +2 -3
  36. package/src/checks/automatic/menuitem-name-present.js +2 -3
  37. package/src/checks/automatic/meter-name-present.js +2 -3
  38. package/src/checks/automatic/nested-interactive-controls-absent.js +2 -3
  39. package/src/checks/automatic/option-name-present.js +2 -3
  40. package/src/checks/automatic/progressbar-name-present.js +2 -3
  41. package/src/checks/automatic/searchbox-name-present.js +2 -3
  42. package/src/checks/automatic/server-side-image-map-absent.js +2 -3
  43. package/src/checks/automatic/slider-name-present.js +2 -3
  44. package/src/checks/automatic/spinbutton-name-present.js +2 -3
  45. package/src/checks/automatic/summary-name-present.js +2 -3
  46. package/src/checks/automatic/tab-name-present.js +2 -3
  47. package/src/checks/automatic/table-headers-attr-valid.js +2 -3
  48. package/src/checks/automatic/table-th-has-data-cells.js +2 -3
  49. package/src/checks/automatic/td-has-header.js +2 -3
  50. package/src/checks/automatic/textbox-name-present.js +2 -3
  51. package/src/checks/automatic/tooltip-name-present.js +2 -3
  52. package/src/checks/automatic/treeitem-name-present.js +2 -3
  53. package/src/checks/automatic/valid-lang.js +2 -3
  54. package/src/checks/manual/accesskeys-manual.js +1 -7
  55. package/src/checks/manual/aria-checked-state-mismatch-manual.js +3 -4
  56. package/src/checks/manual/aria-text-manual.js +2 -3
  57. package/src/checks/manual/focus-order-semantics-manual.js +2 -3
  58. package/src/checks/manual/identical-links-same-purpose-manual.js +2 -3
  59. package/src/checks/manual/image-redundant-alt-manual.js +2 -3
  60. package/src/checks/manual/label-title-only-manual.js +2 -3
  61. package/src/checks/manual/link-name-quality-manual.js +2 -3
  62. package/src/checks/manual/mouse-only-event-handlers-manual.js +2 -3
  63. package/src/checks/manual/no-autoplay-audio-manual.js +2 -3
  64. package/src/checks/manual/p-as-heading-manual.js +2 -3
  65. package/src/checks/manual/page-has-heading-one-manual.js +31 -2
  66. package/src/checks/manual/presentation-role-conflict-manual.js +3 -4
  67. package/src/checks/manual/scrollable-region-focusable-manual.js +2 -3
  68. package/src/checks/manual/skip-link-manual.js +91 -9
  69. package/src/checks/manual/table-duplicate-name-manual.js +2 -3
  70. package/src/checks/manual/table-fake-caption-manual.js +2 -3
  71. package/src/checks/manual/video-caption-manual.js +2 -3
  72. package/src/core/dom-helpers.js +56 -3
  73. package/src/core/dom-runner.js +15 -0
  74. package/src/core.js +851 -481
  75. package/src/i18n/en.js +4 -2
  76. package/src/i18n/fr.js +4 -2
package/src/i18n/en.js CHANGED
@@ -807,10 +807,12 @@ module.exports = {
807
807
  "region_summary_cantTell": "This content is not contained within a landmark region.",
808
808
  "region_hint_cantTell": "Move this content inside a landmark region (main, nav, aside, a labeled section, etc.).",
809
809
 
810
- "skipLink_title": "Skip link must have a resolvable target",
811
- "skipLink_description": "Checks that a \"skip to ...\" link's href fragment resolves to a real element in the document.",
810
+ "skipLink_title": "Skip link must have a resolvable, usable target",
811
+ "skipLink_description": "Checks that a \"skip to ...\" link's href fragment resolves to a real, currently usable element in the document.",
812
812
  "skipLink_summary_cantTell": "This skip link's target does not exist.",
813
813
  "skipLink_hint_cantTell": "Point the skip link's href at an id that exists in the document, or add the missing target element.",
814
+ "skipLink_summary_unusableTarget_cantTell": "This skip link points to a target that exists but is not currently usable.",
815
+ "skipLink_hint_unusableTarget_cantTell": "Point this skip link to a target that is exposed and usable as a navigation destination.",
814
816
 
815
817
  "autocompleteValid_title": "autocomplete attribute must be a valid autofill value",
816
818
  "autocompleteValid_description": "Checks that a non-empty autocomplete attribute is \"on\"/\"off\" or a well-formed autofill detail token list.",
package/src/i18n/fr.js CHANGED
@@ -749,10 +749,12 @@ module.exports = {
749
749
  "region_description": "Vérifie que les enfants directs de <body> ayant un contenu textuel visible sont contenus dans un point de repère.",
750
750
  "region_summary_cantTell": "Ce contenu n’est contenu dans aucun point de repère.",
751
751
  "region_hint_cantTell": "Déplacez ce contenu à l’intérieur d’un point de repère (main, nav, aside, une section nommée, etc.).",
752
- "skipLink_title": "Un lien d’évitement doit avoir une cible qui se résout",
753
- "skipLink_description": "Vérifie que le fragment href d’un lien « aller au... » se résout vers un élément réel du document.",
752
+ "skipLink_title": "Un lien d’évitement doit avoir une cible qui se résout et qui est utilisable",
753
+ "skipLink_description": "Vérifie que le fragment href d’un lien « aller au... » se résout vers un élément réel et actuellement utilisable du document.",
754
754
  "skipLink_summary_cantTell": "La cible de ce lien d’évitement n’existe pas.",
755
755
  "skipLink_hint_cantTell": "Faites pointer le href du lien d’évitement vers un id qui existe dans le document, ou ajoutez l’élément cible manquant.",
756
+ "skipLink_summary_unusableTarget_cantTell": "Ce lien d’évitement pointe vers une cible qui existe mais qui n’est pas actuellement utilisable.",
757
+ "skipLink_hint_unusableTarget_cantTell": "Faites pointer ce lien d’évitement vers une cible exposée et utilisable comme destination de navigation.",
756
758
  "autocompleteValid_title": "L’attribut autocomplete doit être une valeur d’auto-remplissage valide",
757
759
  "autocompleteValid_description": "Vérifie qu’un attribut autocomplete non vide vaut « on »/« off » ou une liste de jetons d’auto-remplissage bien formée.",
758
760
  "autocompleteValid_summary_fail": "Cette valeur d’attribut autocomplete n’est pas une valeur d’auto-remplissage valide.",