axe-core 4.10.0 → 4.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/axe.d.ts +5 -1
- package/axe.js +317 -299
- package/axe.min.js +2 -2
- package/locales/README.md +3 -3
- package/locales/_template.json +14 -14
- package/package.json +2 -1
- package/sri-history.json +4 -0
package/locales/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
We welcome any localization for axe-core. For details on how to contribute, see the [Contributing section](../README.md#contributing) of the main README. For details on the message syntax, see [Check Message Template](../doc/check-message-template.md).
|
|
4
4
|
|
|
5
|
-
To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a
|
|
5
|
+
To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a JSON file with the default English text in it for you to translate. Alternatively, you could copy `_template.json`.
|
|
6
6
|
|
|
7
|
-
To update an existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages
|
|
7
|
+
To update an existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages that are no longer used in English.
|
|
8
8
|
|
|
9
|
-
`_template.json` is a generated file which is created every time axe is built. It's compiled using each
|
|
9
|
+
`_template.json` is a generated file which is created every time axe is built. It's compiled using each rule's `description` and `help` properties, as well as each check's `metadata.messages` property. To update the `_template.json` file you'll need to update the corresponding [rule](../lib/rules) or [check](../lib/checks) metadata file and rebuild.
|
package/locales/_template.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"help": "accesskey attribute value should be unique"
|
|
7
7
|
},
|
|
8
8
|
"area-alt": {
|
|
9
|
-
"description": "Ensure <area> elements of image maps have
|
|
10
|
-
"help": "Active <area> elements must have
|
|
9
|
+
"description": "Ensure <area> elements of image maps have alternative text",
|
|
10
|
+
"help": "Active <area> elements must have alternative text"
|
|
11
11
|
},
|
|
12
12
|
"aria-allowed-attr": {
|
|
13
13
|
"description": "Ensure an element's role supports its ARIA attributes",
|
|
@@ -222,8 +222,8 @@
|
|
|
222
222
|
"help": "Links with the same name must have a similar purpose"
|
|
223
223
|
},
|
|
224
224
|
"image-alt": {
|
|
225
|
-
"description": "Ensure <img> elements have
|
|
226
|
-
"help": "Images must have
|
|
225
|
+
"description": "Ensure <img> elements have alternative text or a role of none or presentation",
|
|
226
|
+
"help": "Images must have alternative text"
|
|
227
227
|
},
|
|
228
228
|
"image-redundant-alt": {
|
|
229
229
|
"description": "Ensure image alternative is not repeated as text",
|
|
@@ -234,8 +234,8 @@
|
|
|
234
234
|
"help": "Input buttons must have discernible text"
|
|
235
235
|
},
|
|
236
236
|
"input-image-alt": {
|
|
237
|
-
"description": "Ensure <input type=\"image\"> elements have
|
|
238
|
-
"help": "Image buttons must have
|
|
237
|
+
"description": "Ensure <input type=\"image\"> elements have alternative text",
|
|
238
|
+
"help": "Image buttons must have alternative text"
|
|
239
239
|
},
|
|
240
240
|
"label-content-name-mismatch": {
|
|
241
241
|
"description": "Ensure that elements labelled through their content must have their visible text as part of their accessible name",
|
|
@@ -330,8 +330,8 @@
|
|
|
330
330
|
"help": "<video> or <audio> elements must not play automatically"
|
|
331
331
|
},
|
|
332
332
|
"object-alt": {
|
|
333
|
-
"description": "Ensure <object> elements have
|
|
334
|
-
"help": "<object> elements must have
|
|
333
|
+
"description": "Ensure <object> elements have alternative text",
|
|
334
|
+
"help": "<object> elements must have alternative text"
|
|
335
335
|
},
|
|
336
336
|
"p-as-heading": {
|
|
337
337
|
"description": "Ensure bold, italic text and font-size is not used to style <p> elements as a heading",
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
"help": "All page content should be contained by landmarks"
|
|
351
351
|
},
|
|
352
352
|
"role-img-alt": {
|
|
353
|
-
"description": "Ensure [role=\"img\"] elements have
|
|
353
|
+
"description": "Ensure [role=\"img\"] elements have alternative text",
|
|
354
354
|
"help": "[role=\"img\"] elements must have an alternative text"
|
|
355
355
|
},
|
|
356
356
|
"scope-attr-valid": {
|
|
@@ -771,8 +771,8 @@
|
|
|
771
771
|
"fail": "Element contains <img> element with alt text that duplicates existing text"
|
|
772
772
|
},
|
|
773
773
|
"explicit-label": {
|
|
774
|
-
"pass": "
|
|
775
|
-
"fail": "
|
|
774
|
+
"pass": "Element has an explicit <label>",
|
|
775
|
+
"fail": "Element does not have an explicit <label>",
|
|
776
776
|
"incomplete": "Unable to determine if form element has an explicit <label>"
|
|
777
777
|
},
|
|
778
778
|
"help-same-as-label": {
|
|
@@ -785,9 +785,9 @@
|
|
|
785
785
|
"incomplete": "Unable to determine if form element has explicit <label> that is hidden"
|
|
786
786
|
},
|
|
787
787
|
"implicit-label": {
|
|
788
|
-
"pass": "
|
|
789
|
-
"fail": "
|
|
790
|
-
"incomplete": "Unable to determine if form element has an implicit (wrapped
|
|
788
|
+
"pass": "Element has an implicit (wrapped) <label>",
|
|
789
|
+
"fail": "Element does not have an implicit (wrapped) <label>",
|
|
790
|
+
"incomplete": "Unable to determine if form element has an implicit (wrapped) <label>"
|
|
791
791
|
},
|
|
792
792
|
"label-content-name-mismatch": {
|
|
793
793
|
"pass": "Element contains visible text as part of it's accessible name",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axe-core",
|
|
3
3
|
"description": "Accessibility engine for automated Web UI testing",
|
|
4
|
-
"version": "4.10.
|
|
4
|
+
"version": "4.10.1",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=4"
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
"sri-update": "grunt build && node build/sri-update && git add sri-history.json",
|
|
113
113
|
"sri-validate": "node build/sri-update --validate",
|
|
114
114
|
"fmt": "prettier --write .",
|
|
115
|
+
"fmt:check": "prettier --check .",
|
|
115
116
|
"prepare": "husky && npm run patch",
|
|
116
117
|
"prebuild": "node ./build/check-node-version.js",
|
|
117
118
|
"pretest": "node ./build/check-node-version.js",
|
package/sri-history.json
CHANGED
|
@@ -382,5 +382,9 @@
|
|
|
382
382
|
"4.10.0": {
|
|
383
383
|
"axe.js": "sha256-n/KN+TQhojZXnh49uUEY3/Df5WszWcCEothu0P58qDY=",
|
|
384
384
|
"axe.min.js": "sha256-SDpP7Usv5Wz9lKWFZQIMhjmD+EFeKCfzSB3ONecO/7U="
|
|
385
|
+
},
|
|
386
|
+
"4.10.1": {
|
|
387
|
+
"axe.js": "sha256-KQDnBck/AyiC+OE3x0AJ/EQYykYTnH+1z7punr4Xc0c=",
|
|
388
|
+
"axe.min.js": "sha256-OBXf33U9n+qCj0mI9MLkiVyC1nCzabDnmopjyuv1gZ4="
|
|
385
389
|
}
|
|
386
390
|
}
|