- var dom = $('<div document-node-element>'),
- widgetsContainer = $('<div class="canvas-widgets" contenteditable="false">'),
- container = $('<div document-element-content>');
+ var dom = $('<div>')
+ .attr('document-node-element', ''),
+ widgetsContainer = $('<div>')
+ .addClass('canvas-widgets')
+ .attr('contenteditable', false),
+ container = $('<div>')
+ .attr('document-element-content', '');