Skip to content

Commit e03b0ac

Browse files
committed
fix: wrong prop reference in warning message
fix #541
1 parent 978cc2a commit e03b0ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/render-html/src/renderEmptyContent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ function renderEmptyContent({ tnode }: TNodeSubRendererProps<TNode>) {
66
if (tnode.isUnregistered) {
77
console.warn(
88
`There is no custom renderer registered for tag "${tnode.tagName}" which is not part of the HTML5 standard. The tag will not be rendered.` +
9-
' If you don\'t want this tag to be rendered, add it to "ignoredTags" prop array. If you do, register an HTMLElementModel for this tag with "customHTMLElementModels" prop.'
9+
' If you don\'t want this tag to be rendered, add it to "ignoredDomTags" prop array. If you do, register an HTMLElementModel for this tag with "customHTMLElementModels" prop.'
1010
);
1111
} else if (tnode.tagName !== 'head') {
1212
console.warn(
1313
`The "${tnode.tagName}" tag is a valid HTML element but is not handled by this library. You must extend the default HTMLElementModel for this tag with "customHTMLElementModels" prop and make sure its content model is not set to "none".` +
14-
' If you don\'t want this tag to be rendered, add it to "ignoredTags" prop array.'
14+
' If you don\'t want this tag to be rendered, add it to "ignoredDomTags" prop array.'
1515
);
1616
}
1717
}

0 commit comments

Comments
 (0)