PDA

View Full Version : using Ext.DomHelper.createDom



alupuli
13 Jul 2010, 12:34 PM
ext version : '3.2.1'



var node = Ext.DomHelper.createDom({
tag: 'a'
});
alert(node); //alerts blank
alert(node.tag); //alerts 'undefined'


is above correct code for creating html element without adding to html dom.
any performance concern with using createDom

Animal
13 Jul 2010, 1:09 PM
There's no content to alert.

"tag" is not a valid property of a Element.

You must be familiar with this document: http://www.w3.org/TR/DOM-Level-3-Core/ecma-script-binding.html