Skip to content

Commit

Permalink
fix: wrong prop reference in warning message
Browse files Browse the repository at this point in the history
fix #541
  • Loading branch information
jsamr committed Dec 3, 2021
1 parent 978cc2a commit e03b0ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/render-html/src/renderEmptyContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ function renderEmptyContent({ tnode }: TNodeSubRendererProps<TNode>) {
if (tnode.isUnregistered) {
console.warn(
`There is no custom renderer registered for tag "${tnode.tagName}" which is not part of the HTML5 standard. The tag will not be rendered.` +
' 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.'
' 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.'
);
} else if (tnode.tagName !== 'head') {
console.warn(
`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".` +
' If you don\'t want this tag to be rendered, add it to "ignoredTags" prop array.'
' If you don\'t want this tag to be rendered, add it to "ignoredDomTags" prop array.'
);
}
}
Expand Down

0 comments on commit e03b0ac

Please sign in to comment.