babelacc

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

commit
25f0c44e6d49908a234460ca3c262e8217232230
parent
9d2e2bd0a6b81bdf091b8489f2c47276b504713e
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-02-23 11:53
update accdc

Diffstat

M babel.js 12 ++++++------

1 files changed, 6 insertions, 6 deletions


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

@@ -19273,7 +19273,7 @@ module.exports = {
19273 19273 })(typeof window === 'object' ? window : this);
19274 19274 }).call(this,require('_process'))
19275 19275 },{"_process":1}],14:[function(require,module,exports){
19276    -1 var currentVersion = "2.17";
   -1 19276 var currentVersion = "2.20";
19277 19277 
19278 19278 /*!
19279 19279 CalcNames: The AccName Computation Prototype, compute the Name and Description property values for a DOM node
@@ -19442,12 +19442,12 @@ var calcNames = function(node, fnc, preventVisualARIASelfCSSRef) {
19442 19442         }
19443 19443       }
19444 19444       res.name += fResult.owns || "";
19445    -1       if (rootNode === node && !trim(res.name) && trim(fResult.title)) {
   -1 19445       if (rootNode === refNode && !trim(res.name) && trim(fResult.title)) {
19446 19446         res.name = addSpacing(fResult.title);
19447    -1       } else if (refNode === node && rootNode === node) {
   -1 19447       } else if (rootNode === refNode && trim(fResult.title)) {
19448 19448         res.title = addSpacing(fResult.title);
19449 19449       }
19450    -1       if (trim(fResult.desc)) {
   -1 19450       if (rootNode === refNode && trim(fResult.desc)) {
19451 19451         res.title = addSpacing(fResult.desc);
19452 19452       }
19453 19453       if (nodeIsBlock || fResult.isWidget) {
@@ -20099,7 +20099,7 @@ var calcNames = function(node, fnc, preventVisualARIASelfCSSRef) {
20099 20099 
20100 20100   var isHidden = function(node, refNode) {
20101 20101     var hidden = function(node) {
20102    -1       if (node.nodeType !== 1 || node === refNode) {
   -1 20102       if (!node || node.nodeType !== 1 || node === refNode) {
20103 20103         return false;
20104 20104       }
20105 20105       if (node.getAttribute("aria-hidden") === "true") {
@@ -20304,7 +20304,7 @@ var calcNames = function(node, fnc, preventVisualARIASelfCSSRef) {
20304 20304     if (!nOA || !nOA.length) {
20305 20305       return "";
20306 20306     }
20307    -1     let parts = [];
   -1 20307     var parts = [];
20308 20308     for (var i = 0; i < nOA.length; i++) {
20309 20309       var role = getRole(nOA[i]);
20310 20310       var isValidChildRole = !childRoles || childRoles.indexOf(role) !== -1;