remove comments
This commit is contained in:
parent
8f5d2d34c6
commit
78ffa63ac5
|
@ -49,9 +49,6 @@ function FramedEngine(options) {
|
|||
this.widget.domNodes.push(this.iframeNode);
|
||||
// Construct the textarea or input node
|
||||
var tag = $tw.utils.makeTagNameSafe(this.widget.editTag, "input");
|
||||
// if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
|
||||
// tag = "input";
|
||||
// }
|
||||
this.domNode = this.iframeDoc.createElement(tag);
|
||||
// Set the text
|
||||
if(this.widget.editTag === "textarea") {
|
||||
|
|
|
@ -23,10 +23,6 @@ function SimpleEngine(options) {
|
|||
this.nextSibling = options.nextSibling;
|
||||
// Construct the textarea or input node
|
||||
var tag = $tw.utils.makeTagNameSafe(this.widget.editTag,"input");
|
||||
// var tag = this.widget.editTag;
|
||||
// if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
|
||||
// tag = "input";
|
||||
// }
|
||||
this.domNode = this.widget.document.createElement(tag);
|
||||
// Set the text
|
||||
if(this.widget.editTag === "textarea") {
|
||||
|
|
|
@ -38,9 +38,6 @@ ButtonWidget.prototype.render = function(parent,nextSibling) {
|
|||
this.computeAttributes();
|
||||
this.execute();
|
||||
// Create element
|
||||
// if(this.buttonTag && $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {
|
||||
// tag = this.buttonTag;
|
||||
// }
|
||||
tag = $tw.utils.makeTagNameSafe(this.buttonTag,tag)
|
||||
domNode = this.document.createElement(tag);
|
||||
this.domNode = domNode;
|
||||
|
|
|
@ -39,9 +39,6 @@ DraggableWidget.prototype.render = function(parent,nextSibling) {
|
|||
this.execute();
|
||||
// Sanitise the specified tag
|
||||
tag = $tw.utils.makeTagNameSafe(this.draggableTag,"div");
|
||||
// if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
|
||||
// tag = "div";
|
||||
// }
|
||||
// Create our element
|
||||
domNode = this.document.createElement(tag);
|
||||
// Assign classes
|
||||
|
|
|
@ -36,9 +36,6 @@ DroppableWidget.prototype.render = function(parent,nextSibling) {
|
|||
this.computeAttributes();
|
||||
this.execute();
|
||||
tag = $tw.utils.makeTagNameSafe(this.droppableTag,tag);
|
||||
// if(this.droppableTag && $tw.config.htmlUnsafeElements.indexOf(this.droppableTag) === -1) {
|
||||
// tag = this.droppableTag;
|
||||
// }
|
||||
// Create element and assign classes
|
||||
domNode = this.document.createElement(tag);
|
||||
this.domNode = domNode;
|
||||
|
|
|
@ -32,9 +32,6 @@ ElementWidget.prototype.render = function(parent,nextSibling) {
|
|||
// Neuter blacklisted elements
|
||||
this.tag = this.parseTreeNode.tag;
|
||||
this.tag = $tw.utils.makeTagNameSafe(this.tag, "safe" + this.tag);
|
||||
// if($tw.config.htmlUnsafeElements.indexOf(this.tag) !== -1) {
|
||||
// this.tag = "safe-" + this.tag;
|
||||
// }
|
||||
// Restrict tag name to digits, letts and dashes
|
||||
this.tag = this.tag.replace(/[^0-9a-zA-Z\-]/mg,"");
|
||||
// Default to a span
|
||||
|
|
|
@ -36,9 +36,6 @@ EventWidget.prototype.render = function(parent,nextSibling) {
|
|||
// Create element
|
||||
var tag = this.parseTreeNode.isBlock ? "div" : "span";
|
||||
tag = $tw.utils.makeTagNameSafe(this.elementTag,tag)
|
||||
// if(this.elementTag && $tw.config.htmlUnsafeElements.indexOf(this.elementTag) === -1) {
|
||||
// tag = this.elementTag;
|
||||
// }
|
||||
var domNode = this.document.createElement(tag);
|
||||
this.domNode = domNode;
|
||||
// Assign classes
|
||||
|
|
|
@ -35,9 +35,6 @@ KeyboardWidget.prototype.render = function(parent,nextSibling) {
|
|||
this.execute();
|
||||
var tag = this.parseTreeNode.isBlock ? "div" : "span";
|
||||
tag = $tw.utils.makeTagNameSafe(this.tag,tag);
|
||||
// if(this.tag && $tw.config.htmlUnsafeElements.indexOf(this.tag) === -1) {
|
||||
// tag = this.tag;
|
||||
// }
|
||||
// Create element
|
||||
var domNode = this.document.createElement(tag);
|
||||
// Assign classes
|
||||
|
|
|
@ -62,9 +62,6 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
|
|||
// Sanitise the specified tag
|
||||
var tag = this.linkTag;
|
||||
tag = $tw.utils.makeTagNameSafe(tag,"a");
|
||||
// if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
|
||||
// tag = "a";
|
||||
// }
|
||||
// Create our element
|
||||
var namespace = this.getVariable("namespace",{defaultValue: "http://www.w3.org/1999/xhtml"}),
|
||||
domNode = this.document.createElementNS(namespace,tag);
|
||||
|
|
|
@ -34,9 +34,6 @@ RevealWidget.prototype.render = function(parent,nextSibling) {
|
|||
this.execute();
|
||||
var tag = this.parseTreeNode.isBlock ? "div" : "span";
|
||||
tag = $tw.utils.makeTagNameSafe(this.revealTag,tag);
|
||||
// if(this.revealTag && $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {
|
||||
// tag = this.revealTag;
|
||||
// }
|
||||
var domNode = this.document.createElement(tag);
|
||||
this.domNode = domNode;
|
||||
this.assignDomNodeClasses();
|
||||
|
|
Loading…
Reference in New Issue