Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mattzeunert committed May 14, 2019
1 parent 74eec8c commit 5ca09b6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lighthouse-core/gather/gatherers/accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ function runA11yChecks() {
},
// @ts-ignore
}).then(axeResult => {
// Augment the node objects with outerHTML snippet & custom path string
// @ts-ignore
// Scroll back to the top of the page so that element positions
// are relative to the top of the page
document.documentElement.scrollTop = 0;


// Augment the node objects with outerHTML snippet & custom path string
// @ts-ignore
axeResult.violations.forEach(v => v.nodes.forEach(node => {
// @ts-ignore - getNodePath put into scope via stringification
node.path = getNodePath(node.element);
Expand Down

0 comments on commit 5ca09b6

Please sign in to comment.