Closed
Bug 36343
Opened 25 years ago
Closed 25 years ago
getSelection() is still not implemented/checked-in
Categories
(Core :: DOM: Selection, defect, P3)
Core
DOM: Selection
Tracking
()
M16
People
(Reporter: cbsears, Assigned: mjudge)
Details
From Bugzilla Helper:
User-Agent: Mozilla/4.72 [en] (X11; I; Linux 2.2.13-7mdk i686)
BuildID: m15
getSelection() is a Javascript function which gets a
copy of the selected text from a document window.
getwindow.content.document.getSelection();
I've sent mail to Johnny Stenback who has written getSelection()
and sent me a patch. But he hasn't checked it in yet.
Please check it in.
Reproducible: Always
Steps to Reproduce:
1. selection some text from a browser window
2. execute this Javascript
var ds = window.content.document.getSelection();
3. display ds
Actual Results: returns a null string.
Expected Results: return the selected text.
This really is a blocker for me. I'm writing a XUL package which depends on
getSelection().
It is an action menu. A user selects some text, and the selects an action from
a menu. The XUL menu description then executes an item specific Javascript
code. For example,
select the text "please"
select Dictionary Lookup
XUL calls Javascript which constructs a lookup URL
page gets loaded and voila, a dictionary lookup of "please"
Without getSelection, I have to hack in static test strings. And I can't
integrate this into Aphrodite.
Comment 1•25 years ago
|
||
duplicate
*** This bug has been marked as a duplicate of 32481 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
OS: Linux → All
Hardware: PC → All
Resolution: --- → DUPLICATE
Target Milestone: --- → M16
You need to log in
before you can comment on or make changes to this bug.
Description
•