Skip to content

Commit 8526b21

Browse files
committed
Corrected missing area tag check for the alt attribute logic.
1 parent 72bde31 commit 8526b21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/Sample JavaScript Recursion Algorithm/recursion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Distributed under the terms of the Open Source Initiative OSI - MIT License
1414
window[nameSpace] = {};
1515
nameSpace = window[nameSpace];
1616
}
17-
nameSpace.getAccNameVersion = "2.63";
17+
nameSpace.getAccNameVersion = "2.64";
1818
// AccName Computation Prototype
1919
nameSpace.getAccName = nameSpace.calcNames = function (
2020
node,
@@ -561,7 +561,7 @@ Plus roles extended for the Role Parity project.
561561
false;
562562

563563
var nAlt =
564-
(btnType !== "image" && nTag !== "img") ||
564+
(btnType !== "image" && nTag !== "img" && nTag !== "area") ||
565565
(rolePresentation && nTag === "img")
566566
? ""
567567
: trim(node.alt || node.getAttribute("alt"));

0 commit comments

Comments
 (0)