I didn't find a way to do this yet, but I did discover a way to crash my
browser:
Warning: locks up FF2
Input: <div id="id1"><p>here is</p> some text</div>
jQ: $("#id1<").text()
I also discovered a way to get the text of the first element:
Input: <div id="id1"><p>here is</p> some text</div>
jQ: $("#id1>").text()
Output: "here is"
~ ~ Dave
On Tue, 29 May 2007 15:48:30 -0400, DaveG <[EMAIL PROTECTED]> wrote:
>
>
> How do I find the first text-node of a given DOM object?
>
> Input: <div><p>here is</p> some text</div>
> Output: " some text"
>
> Input: <h1><a href="#id1"></a>Header 1</h1>
> Output: "Header 1"
>
> ~ ~ Dave