Version: (using KDE KDE 3.5.0) Installed from: Compiled From Sources I've described this as a "wish", as kjs isn't actually breaking any standards by returning plain text with getSelection(). However, I believe it is very important to change the return type to a Range. This would allow scripts to know not just the text that was selected, but also the location of the selection, which is needed for writing a rich text editor, for example.
Someone knowledgeable should comment on this. It seems simple to fix.
document.getSelection() should continue to return a string, as it does in Netscape 4, Mozilla etc. It's window.getSelection() that returns a selection object, if Mozilla is to be followed (and it would be helpful to have the functionality). Docs at http://developer.mozilla.org/en/docs/DOM:Selection , minimal functionality is rangeCount and getRangeAt().
*** This bug has been marked as a duplicate of bug 174637 ***