Closed Bug 284591 Opened 20 years ago Closed 16 years ago

Clicking at end of text field moves insertion point to beginning of field

Categories

(Core :: DOM: Editor, defect)

1.7 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozilla-bugzilla, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050224 Firefox/1.0.1 Fedora/1.0.1-1.3.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050224 Firefox/1.0.1 Fedora/1.0.1-1.3.1

When a text field contains only non-alphabetic characters, clicking the mouse
past the end of the field moves the insertion point to the beginning. The
problem does not manifest if the field contains any alphabetic characters.

For multi-line text fields, the effect occurs on a per-line basis, ie. clicking
to the right of the second line will move the cursor to the front of the second
line, if it does not contain any alphabetic characters.

The problem occurs in the location bar as well, and also when middle-click
pasting (resulting in the pasted text erroneously being inserted at the
beginning of the line, rather than the end).

I believe this is not related to the click per se, as the End key misbehaves in
the same scenario -- it also moves the cursor to the beginning of the line.

Reproducible: Always

Steps to Reproduce:
1. In a text field, or in the location bar, type 123 (for instance; any sequence
of non-alphabetic characters will do).
2. Try End.
3. Try clicking after the end of the text.

Actual Results:  
In steps 2 and 3, the insertion point always moved to the front of the text field.

Expected Results:  
The End key, or clicking past the end of the text, should move the insertion
point to the end of the text.
Bizzare
Assignee: firefox → mozeditor
Status: UNCONFIRMED → NEW
Component: General → Editor
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → bugzilla
Version: unspecified → 1.7 Branch
QA Contact: bugzilla → editor
Assignee: mozeditor → nobody
the steps work for me using FF3
=> WFM
please comment if you see otherwise
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.