- commit
- befaef0a9b31e5a85613568713690ca42a99cac6
- parent
- 62772ec68983c47981c9003774d41fa8ad4e73e2
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2018-07-07 06:40
update axe-core to 3.0.x
Diffstat
| M | package.json | 2 | +- |
| M | src/babel.js | 5 | ++++- |
2 files changed, 5 insertions, 2 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.2.5",8 -1 "axe-core": "^2.6.1",-1 8 "axe-core": "^3.0.3", 9 9 "w3c-alternative-text-computation": "github:accdc/w3c-alternative-text-computation" 10 10 }, 11 11 "repository": {
diff --git a/src/babel.js b/src/babel.js
@@ -26,7 +26,10 @@ var implementations = {
26 26 'accdc': accdc.calcNames,
27 27 'axe': function(el) {
28 28 return {
29 -1 name: ex(axe.commons.text.accessibleText, [el]),
-1 29 name: ex(function(el) {
-1 30 axe._tree = axe.utils.getFlattenedTree(document.body);
-1 31 return axe.commons.text.accessibleText(el);
-1 32 }, [el]),
30 33 desc: '-',
31 34 role: el.getAttribute('role') || ex(axe.commons.aria.implicitRole, [el]),
32 35 };