We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef88880 + fee9b57 commit 8ee9ad6Copy full SHA for 8ee9ad6
src/polyfills/Element.js
@@ -19,7 +19,7 @@ if (!Element.prototype.closest) {
19
}
20
21
// Check if any ancestors match selectors
22
- while (el !== null && el.nodetype === 1) {
+ while (el !== null && el.nodeType === 1) {
23
if (el.matches(selectors)) {
24
return el;
25
} else {
0 commit comments