Skip to content

Commit 5d296c1

Browse files
committed
Fix selectAll utility function
Fixes #130 where SVG elements are ignored / skipped
1 parent 69c8aea commit 5d296c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vanilla/src/utils/selectAll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function selectAll(selector: SelectAllSelectors, doc: Document = document
1515

1616
if (typeof item === 'string') {
1717
nodes.push(...Array.from(doc.querySelectorAll(item)));
18-
} else if (item instanceof HTMLElement) {
18+
} else if (item instanceof Element) {
1919
nodes.push(item);
2020
}
2121
}

0 commit comments

Comments
 (0)