difference beween ,contents() and contents().contents()
Hi,
To get all textnodes in a paragraph I'm doing this:
- $('* p',$(frame).contents()).contents().filter(function(){
- return this.nodeType == 3;
- }).wrap("<span/>");
because if I do it with just one contents() call:
- $('* p',$(frame).contents())..filter(function(){
- return this.nodeType == 3;
- }).wrap("<span/>");
it won't get me all the textnodes.
Shouldn't just one call to contents() get all the textnodes at once?
Regards