I hope anyone can shed any light on this and this is the right forum to post this issue in. I am trying to create a DOM Range object based off a user's selection. In Mozilla I can easily do this using: window.getSelection().getRangeAt(0) In IE I can do document.selection.createRange(); However, in Konqueror(3.2.2) document.getSelection() returns a string instead of a Selection object and window.getSelection() doesn't work at all. I know that the KHTML function KHTMLPart::selection() returns a DO...
Thank you for your replies! I have posted in the above forums.
I am trying to create a DOM Range object based off a user's selection. In Mozilla I can easily do this using: window.getSelection().getRangeAt(0) In IE I can do document.selection.createRange(); However, in Konqueror(3.2.2) document.getSelection() returns a string instead of a Selection object and window.getSelection() doesn't work at all. I know that the KHTML function KHTMLPart::selection() returns a DOM::Range object (http://developer.kde.org/documentation/library/2.0-api/classref/khtml/KHTML...