babelacc

compare different implementations of the text alternative computation  https://p.ce9e.org/babelacc/
git clone https://git.ce9e.org/babelacc.git

commit
42eb0c4d03ef5fcd50e6e8f24339ba4e7eb4ae7c
parent
c4449f89abd681f7cf837eb49d54a4edfad2193c
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-01-29 14:33
update axe to 3.4.3

Diffstat

M Makefile 3 +--
M package.json 2 +-
M src/babel.js 2 +-
D src/eval.patch 9 ---------

4 files changed, 3 insertions, 13 deletions


diff --git a/Makefile b/Makefile

@@ -1,8 +1,7 @@
    1     1 all: babel.js fuzz.js
    2     2 
    3    -1 babel.js: src/babel.js src/axs.js src/eval.patch
   -1     3 babel.js: src/babel.js src/axs.js
    4     4 	browserify $< -o $@
    5    -1 	patch $@ src/eval.patch
    6     5 
    7     6 fuzz.js: fuzz/index.js fuzz/*.js node_modules/aria-api/instrumented.js node_modules/aria-api/lib/name-inst.js
    8     7 	browserify $< -o $@

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.3.0",
    8    -1     "axe-core": "^3.2.2",
   -1     8     "axe-core": "^3.4.1",
    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,7 +24,7 @@ var implementations = {
   24    24 		};
   25    25 	},
   26    26 	'accdc (2.27)': accdc.calcNames,
   27    -1 	'axe (3.2.2)': function(el) {
   -1    27 	'axe (3.4.3)': function(el) {
   28    28 		return {
   29    29 			name: ex(function(el) {
   30    30 				axe._tree = axe.utils.getFlattenedTree(document.body);

diff --git a/src/eval.patch b/src/eval.patch

@@ -1,9 +0,0 @@
    1    -1 @@ -7015,7 +7015,7 @@
    2    -1            };
    3    -1          };
    4    -1          _globals = function() {
    5    -1 -          return this || (0, eval)('this');
    6    -1 +          return this || {};
    7    -1          }();
    8    -1          if (typeof module !== 'undefined' && module.exports) {
    9    -1            module.exports = doT;