Hi @marijn,
I did not want to offend you! I write here because according to the documentation is not clear that descendants method of node will stop after callback function return false, also seems like i misunderstanding that pos argument given to the callback will be node-local offset not document-wide. I am looking for solution that will give me document wide position.
Again please excuse me I don’t want to offend you!
Sincerely,