Skip to content

Commit 04663be

Browse files
authored
fix(shared): fix text node detect (#975)
1 parent 2318126 commit 04663be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/shared/src/extractor/dom-util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ export function isTextElement(
8080
return true;
8181
}
8282
}
83-
return node.nodeName?.toLowerCase() === '#text' && !isIconfont(node);
83+
84+
return node.nodeName?.toLowerCase?.() === '#text' && !isIconfont(node);
8485
}
8586

8687
export function isContainerElement(

0 commit comments

Comments
 (0)