Skip to content

Commit

Permalink
docs(utils): add code comment in scroll-state for why childNodes is n…
Browse files Browse the repository at this point in the history
…eeded for SVGs in IE (#1827)
  • Loading branch information
benbcai authored and WilcoFiers committed Sep 30, 2019
1 parent 64c59ab commit b319ea2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/utils/scroll-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function setScroll(elm, top, left) {
* Create an array scroll positions from descending elements
*/
function getElmScrollRecursive(root) {
// Need to also get .childNodes since SVGs in IE don't have .children.
return Array.from(root.children || root.childNodes || []).reduce(
(scrolls, elm) => {
const scroll = axe.utils.getScroll(elm);
Expand Down

0 comments on commit b319ea2

Please sign in to comment.