difference beween ,contents() and contents().contents()

difference beween ,contents() and contents().contents()

    Hi,


    To get all textnodes in a paragraph I'm doing this:

    1. $('* p',$(frame).contents()).contents().filter(function(){ 
    2. return this.nodeType == 3;
    3. }).wrap("<span/>");

    because if I do it with just one contents() call:

    1. $('* p',$(frame).contents())..filter(function(){ 
    2. return this.nodeType == 3;
    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