Re: [jQuery] DOM-Traversing and Text_Nodes

2006-10-09 Thread John Resig
> why cant i use jquery to access TEXT_NODES? or: what can i do to get it > working? This is correct - jQuery does not deal with Text Nodes (in that it completely ignores them, along with all other non-Element Nodes). Although, having dealt with text operations in a browser before (incredibly pa

Re: [jQuery] DOM-Traversing and Text_Nodes

2006-10-09 Thread Ⓙⓐⓚⓔ
I was amused by that the first time I noticed that jq was ignoring some node types while dom surfing. But quite nice when you want to get chldren tags, and not all the stinkin' nodes (including text , and comments) When I realized the difference, I just thought of jq dom surfing as 'gentleman's s

[jQuery] DOM-Traversing and Text_Nodes

2006-10-09 Thread Falk Pauser
hi all! i wonder how i could do this using jquery's dom-traversing: in IE6 i do: 1. select one word in text with the mouse 2. get selection and create range 3. clone this range twice, collapse one copy to left and the other to right 4. insert span (id='left_boundary) at left, and span (id='right

[jQuery] DOM-Traversing and Text_Nodes

2006-10-09 Thread Falk Pauser
hi all! i wonder how i could do this using jquery's dom-traversing: in IE6 i do: 1. select one word in text with the mouse 2. get selection and create range 3. clone this range twice, collapse one copy to left and the other to right 4. insert span (id='left_boundary) at left, and span (id='right