Open Bug 1240621 Opened 8 years ago Updated 3 years ago

Cursor in input field stays at the same absolute position when chars are added in middle

Categories

(Core :: DOM: Editor, defect, P5)

43 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jmajnert, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 Iceweasel/43.0.2
Build ID: 20151228074541
Firefox for Android

Steps to reproduce:

1. Open https://ebank.db-pbc.pl/auth/login.jsp in Firefox for Android
2. Enter 4 digits  -> input is formatted (space added between second and third digit)
3. Enter another digit


Actual results:

When the space is added in point 2, the cursor stays at the position in string it had before. That is, it is between third and fourth digit.
When entering digit in point 3, the digit is placed between the third and fourth digit.
Example:
Input 1234 -> Formatting is performed -> "12 3[cursor]4" -> input "5" -> "12 35[cursor]4"


Expected results:

Desktop Firefox, Chrome, Mobile Chrome all put the cursor at the end of input when the formatting happens thus allowing for the subsequent digits to be placed at the end.
Component: Untriaged → Editor
Product: Firefox → Core
I minimized the offending page down to the input field and the formatting function: https://jmajnert.github.io/tests/db_login.html

After a bit of testing I noticed that actual result depends on whether it's numbers or letters you're entering in the input field

Bulk-downgrade of unassigned, 4 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.