babelacc

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

commit
1b83149cf5e408ef53287f617a2d8331d99d69da
parent
2b8fcfc4b2c136694e1621f5f29d6af672776fcc
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2018-02-03 12:38
add axe

Diffstat

M src/babel.js 7 +++++++

1 files changed, 7 insertions, 0 deletions


diff --git a/src/babel.js b/src/babel.js

@@ -1,5 +1,6 @@
    1     1 var ariaApi = require('aria-api');
    2     2 var accdc = require('../lib/accdc');
   -1     3 var axe = require('axe-core');
    3     4 
    4     5 var form = document.querySelector('#ba-form');
    5     6 var preview = document.querySelector('#ba-preview');
@@ -13,6 +14,12 @@ var implementations = {
   13    14 		};
   14    15 	},
   15    16 	'accdc': accdc.calcNames,
   -1    17 	'axe': function(el) {
   -1    18 		return {
   -1    19 			name: axe.commons.text.accessibleText(el),
   -1    20 			desc: null,
   -1    21 		};
   -1    22 	},
   16    23 };
   17    24 
   18    25 var createTd = function(text) {