diff --git a/accessibility-checker-engine/src/v4/rules/target_spacing_sufficient.ts b/accessibility-checker-engine/src/v4/rules/target_spacing_sufficient.ts index caffdf7b2..a1dc51154 100644 --- a/accessibility-checker-engine/src/v4/rules/target_spacing_sufficient.ts +++ b/accessibility-checker-engine/src/v4/rules/target_spacing_sufficient.ts @@ -123,7 +123,7 @@ let adjacentX = null; let adjacentY = null; let checked = []; //contains a list of elements that have been checked so their descendants don't need to be checked again - for (let i=0; i < elems.length; i++) { //console.log("target="+nodeName +", target id="+ ruleContext.getAttribute("id") +" elem="+elems[i].nodeName +", id="+elems[i].getAttribute("id")); + for (let i=0; i < elems.length; i++) { const elem = elems[i] as HTMLElement; /** * the nodes returned from querySelectorAll is in document order diff --git a/accessibility-checker/test/mocha/aChecker.Fast/aChecker.Scans/aChecker.Content.test.js b/accessibility-checker/test/mocha/aChecker.Fast/aChecker.Scans/aChecker.Content.test.js index 6dab68d37..3b3b90486 100644 --- a/accessibility-checker/test/mocha/aChecker.Fast/aChecker.Scans/aChecker.Content.test.js +++ b/accessibility-checker/test/mocha/aChecker.Fast/aChecker.Scans/aChecker.Content.test.js @@ -110,7 +110,10 @@ var skipList = [ // Puppeteer and embedded-chrome @media css behave differently (?) path.join(testRoot, "element_orientation_unlocked_ruleunit","act-fail4.html"), - path.join(testRoot, "element_orientation_unlocked_ruleunit","act-pass3.html") + path.join(testRoot, "element_orientation_unlocked_ruleunit","act-pass3.html"), + path.join(testRoot, "target_spacing_sufficient_ruleunit","link_text.html"), + path.join(testRoot, "target_spacing_sufficient_ruleunit","element_inline2.html"), + path.join(testRoot, "target_spacing_sufficient_ruleunit","link_inline_with_block.html") ] var skipMap = {}