Revert "Fix 8166 html tag validation (#8176)" (#9374)

This reverts commit 9a5f4cc0ef.
This commit is contained in:
Saq Imtiaz
2025-10-29 22:01:03 +01:00
committed by GitHub
parent 9a5f4cc0ef
commit 7898cb8446
12 changed files with 47 additions and 67 deletions

View File

@@ -35,7 +35,9 @@ ButtonWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
// Create element
tag = $tw.utils.makeTagNameSafe(this.buttonTag,tag)
if(this.buttonTag && $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {
tag = this.buttonTag;
}
domNode = this.document.createElement(tag);
this.domNode = domNode;
// Assign classes