Skip to content

Commit aa13063

Browse files
author
Nick Frasser
committed
Fixing element interface invalid DOM node error (#141)
Fixes #140
1 parent 3ddac75 commit aa13063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linkify-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function tokensToNodes(tokens, opts, doc) {
9090
function linkifyElementHelper(element, opts, doc) {
9191

9292
// Can the element be linkified?
93-
if (!element || typeof element !== 'object' || element.nodeType !== HTML_NODE) {
93+
if (!element || element.nodeType !== HTML_NODE) {
9494
throw new Error(`Cannot linkify ${element} - Invalid DOM Node type`);
9595
}
9696

0 commit comments

Comments
 (0)