Skip to content

Commit 8ee9ad6

Browse files
authored
Merge pull request #330 from rackerlabs/fix-polyfill-typo
fix(polyfills): correct typo in polyfill
2 parents ef88880 + fee9b57 commit 8ee9ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/polyfills/Element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (!Element.prototype.closest) {
1919
}
2020

2121
// Check if any ancestors match selectors
22-
while (el !== null && el.nodetype === 1) {
22+
while (el !== null && el.nodeType === 1) {
2323
if (el.matches(selectors)) {
2424
return el;
2525
} else {

0 commit comments

Comments
 (0)