Hi Mathias,
It's an interesting idea. I think the better way to implement it is to using
DocumentFragment.
Codes:
var fragment=document.createDocumentFragment();
fragment.innerHTML=html;
$(exp,fragment).whatever_youlike_function
On 11/24/06, Mathias Bank [EMAIL PROTECTED] wrote:
Hi,
Mathias Bank schrieb:
Until know, I have to create a dom element like
$('body').append('div id=helper/div');
$('#helper').html(html);
$('#helper li',html).css(color,red);
html = $('#helper').html();
$('#helper').remove();
How about this:
html = $(html).find(li).css(color, red).html();
Mathias Bank schrieb:
Thanks for your answers. This helps.
But I think, that the feature request is still interesting, because it
makes using jQuery more consistent. With this behaviour, it doesn't
matter, if I have an element in DOM or I have just an element in
memory.
Right, if
Hi,
$(expr, context) is a really nice function, but it could be optimized.
Until now, it can only be used, if context is a dom tree. But see this
scenario:
var html='';
html += ul;
for (var i=0; i10;i++) {
html += lilisting +i+/li;
}
html+='/ul';
Now, it would be great, if you could apply
On 11/24/06, Mathias Bank [EMAIL PROTECTED] wrote:
Hi,
$(expr, context) is a really nice function, but it could be optimized.
Until now, it can only be used, if context is a dom tree. But see this
scenario:
var html='';
html += ul;
for (var i=0; i10;i++) {
html += lilisting +i+/li;
}