- commit
- a8900878a918226c0e254f77bf9480482be278c4
- parent
- 991fe434ed015e983142be2d9d3760aed003abac
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-09-10 09:43
update axe-core to 4.0.2
Diffstat
| M | package.json | 2 | +- |
| M | src/babel.js | 10 | ++++------ |
2 files changed, 5 insertions, 7 deletions
diff --git a/package.json b/package.json
@@ -5,7 +5,7 @@ 5 5 "devDependencies": { 6 6 "accessibility-developer-tools": "2.12.0", 7 7 "aria-api": "0.4.0",8 -1 "axe-core": "3.4.1",-1 8 "axe-core": "4.0.2", 9 9 "nyc": "^14.1.1", 10 10 "w3c-alternative-text-computation": "github:accdc/w3c-alternative-text-computation" 11 11 },
diff --git a/src/babel.js b/src/babel.js
@@ -24,14 +24,12 @@ var implementations = {
24 24 };
25 25 },
26 26 'accdc (2.49)': accdc.calcNames,
27 -1 'axe (3.4.3)': function(el) {
-1 27 'axe (4.0.2)': function(el) {
-1 28 axe._tree = axe.utils.getFlattenedTree(document.body);
28 29 return {
29 -1 name: ex(function(el) {
30 -1 axe._tree = axe.utils.getFlattenedTree(document.body);
31 -1 return axe.commons.text.accessibleText(el);
32 -1 }, [el]),
-1 30 name: ex(axe.commons.text.accessibleText, [el]),
33 31 desc: '-',
34 -1 role: el.getAttribute('role') || ex(axe.commons.aria.implicitRole, [el]),
-1 32 role: ex(axe.commons.aria.getRole, [el]),
35 33 };
36 34 },
37 35 'axs (2.12.0)': function(el) {