Skip to content

Commit 73ecce5

Browse files
authored
Support anonymous custom elements
1 parent 77448ba commit 73ecce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DOMElementFilter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const testNode = (val: any) => {
175175
}
176176

177177
export const test: NewPlugin['test'] = (val: any) =>
178-
val?.constructor?.name && testNode(val)
178+
val?.constructor && testNode(val)
179179

180180
type HandledType = Element | Text | Comment | DocumentFragment
181181

0 commit comments

Comments
 (0)