Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Commit d7094b3

Browse files
author
Alice Boxhall
committed
Use instanceof check instead of tagName
1 parent eb7b84b commit d7094b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/AccessibilityUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ axs.utils.canScrollTo = function(element, container) {
175175

176176
if (rect.left > containerRect.right || rect.top > containerRect.bottom) {
177177
return (style.overflow == 'scroll' || style.overflow == 'auto' ||
178-
container.tagName.toLowerCase() == 'body');
178+
container instanceof defaultView.HTMLBodyElement);
179179
}
180180

181181
return true;

0 commit comments

Comments
 (0)