some text1
some text2
some text3
so the browser will render: some text1 some text2 some text3 Now, if user places the Caret, lets say on text2 (between 't' and 'e' ,document is in designmode=on), the function should return ref to the second p object. I think it should be done using range object...