Closed Bug 70353 Opened 24 years ago Closed 24 years ago

.selectionStart and .selectionEnd not implemented for multiline <textfield>s

Categories

(Core :: DOM: Editor, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 58850

People

(Reporter: rginda, Assigned: anthonyd)

Details

for single line <textfield>s, .selectionStart gets you the character offset of the start of the selection and .selectionEnd gets you the end. If no text is selected, .selectionStart = .selectionEnd = the caret position. For <textfield multiline="true">, .selectionStart and .selectionEnd are not defined. (the code at nsGfxTextControlFrame2.cpp:2598 is never reached.) [EVAL-IN] o = document.getElementById("multiline-input"); [EVAL-OUT] [object XULElement] [EVAL-IN] o.selectionStart [EVAL-OUT] undefined
*** This bug has been marked as a duplicate of 58850 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verified in 2/26 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.