Closed Bug 122580 Opened 23 years ago Closed 13 years ago

No documentation for selection object

Categories

(Documentation Graveyard :: Web Developer, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: robert, Assigned: doronr)

References

Details

There's no documentation for the selection object.  Specific questions to answer:

- What do I get when I call window.getSelection()? (What's the API?)
- How do I get the html of the current selection?  (ala IE's
document.selection.createRange().htmlText)
- How do I set the HTML for the selection? (ala IE's
document.selection.createRange().pasteHTML())

See http://lxr.mozilla.org/seamonkey/source/content/base/public/nsISelection.idl
Note that the JavaDoc in the IDL file for getRangeAt() aren't clear enough? 
Index? Index of what?

See also IE's
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_selection.asp

See also IE's
Reassigning to oeschger.

Ian, is this covered in the DOM documentation? Could you provide a pointer? Thanks.
Assignee: rudman → oeschger
Status: NEW → ASSIGNED
Dylan is working on Selection interface descriptions. Dylan--hope you don't mind
me assigning this to you. Trying to clean up my bug list a little
Assignee: oeschger → dylans
Status: ASSIGNED → NEW
Blocks: 93108
Accepted.  I'll be able to start on this once I finish the Range docs, likely 
within two weeks.
Dylan, Have you done anything with this?
-> Doron
Assignee: dylans → doronr
Sorry for the late reply... was travelling for much of the past two months. 
There was talk of redoing the format and structure of the domref, so I had been
holding off until that had been decided, and never got back to it.  I can help
with this now if wanted/needed.
You need to log in before you can comment on or make changes to this bug.