1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 11:00:27 +00:00

Stop using custom elements to mark widgets

This commit is contained in:
Jeremy Ruston 2012-12-20 09:21:08 +00:00
parent a4d16488f0
commit bede162896

View File

@ -77,7 +77,7 @@ WidgetRenderer.prototype.render = function(type) {
WidgetRenderer.prototype.renderInDom = function() {
// Create the wrapper element
this.domNode = document.createElement("widget");
this.domNode = document.createElement("div");
this.domNode.setAttribute("data-widget-type",this.parseTreeNode.tag);
this.domNode.setAttribute("data-widget-attr",JSON.stringify(this.attributes));
// Render the widget if we've got one