2009/9/14 Fábio M. Costa <[email protected]>: > You can use the Element.From that Aaron showed, thats is more reliable or > use your function that won't work for some elements (table elements). > > var create_dom = function(html){ > var tempDiv = new Element('div', {html: html}); > var firstElement = tempDiv.getFirst(); > tempDiv.destroy(); > return firstElement; > } > > This might work and remove will temporary div. >
Thanks all of you. -- I like python! UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/ UliWeb <<simple web framework>>: http://uliwebproject.appspot.com My Blog: http://hi.baidu.com/limodou
