1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Crash with <$genesis $type="" />

Fixes #7140
This commit is contained in:
jeremy@jermolene.com 2022-12-20 16:45:29 +00:00
parent 55d9a5e16d
commit b37a356b5e

View File

@ -30,7 +30,7 @@ ElementWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent; this.parentDomNode = parent;
this.computeAttributes(); this.computeAttributes();
// Neuter blacklisted elements // Neuter blacklisted elements
this.tag = this.parseTreeNode.tag; this.tag = this.parseTreeNode.tag || "span";
if($tw.config.htmlUnsafeElements.indexOf(this.tag) !== -1) { if($tw.config.htmlUnsafeElements.indexOf(this.tag) !== -1) {
this.tag = "safe-" + this.tag; this.tag = "safe-" + this.tag;
} }