Closed Bug 124837 Opened 22 years ago Closed 22 years ago

Strange caret movement when inserting text in TEXTAREA

Categories

(Core :: DOM: Editor, defect)

Sun
Solaris
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 102220

People

(Reporter: im14u2c, Assigned: kinmoz)

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.8) Gecko/20020205
BuildID:    2002020516

TEXTAREAs behave oddly when moving the cursor between lines using
the arrow keys.  This behavior is seen when inserting text on one
line and then moving to another.  Instead of moving directly vertical,
the cursor moves to a different horizontal position on the next line.

Reproducible: Always
Steps to Reproduce:
1. Load a page with a TEXTAREA
2. Type "abcdefg" on the first line.
3. Type "hijklmnopqrstuv" on second line.
4. Place the cursor between b and c on first line and type "123".
5. Press the down-arrow.  Cursor should be between l and m.
6. Press up-arrow.  Cursor should be between 3 and c.  Type "456".
7. Press down-arrow again. 

Actual Results:  After final down-arrow, cursor is between l and m.  Pressing 
up-arrow here places the cursor between 3 and 4.

Expected Results:  After the final down-arrow, the cursor should be between o and p,
as this is directly below the cursor's last position on the upper
line.
-->selection
Assignee: rods → mjudge
Component: HTML Form Controls → Selection
QA Contact: madhur → tpreston
Summary: Strange cursor movement when inserting text in TEXTAREA → Strange caret movement when inserting text in TEXTAREA
Please retest this with a current (no older than two days old) build.  A fix
went in on Feb 8 that should fix a lot of problems of this sort...
OK, nevermind. I can reproduce it those exact steps on current linux trunk. 
This is a core editor issue...
Assignee: mjudge → kin
Status: UNCONFIRMED → NEW
Component: Selection → Editor: Core
Ever confirmed: true
QA Contact: tpreston → sujay
This is a dup.

*** This bug has been marked as a duplicate of 102220 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.