Open Bug 1641685 Opened 4 years ago Updated 4 years ago

Range outside of child elements in contenteditable

Categories

(Core :: DOM: Editor, defect)

76 Branch
defect

Tracking

()

People

(Reporter: danmysak, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: parity-chrome, regression, Whiteboard: [h2review-noted])

Attachments

(1 file)

Attached file index.html (deleted) —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Steps to reproduce:

  1. Open index.html.
  2. Place cursor inside the contenteditable.
  3. Select all (Command + A).
  4. Press right arrow.
  5. Type "b".

Actual results:

"b" appears on a separate line.

Expected results:

"b" should have appeared on the same line as "a".

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → DOM: Editor
Product: Firefox → Core

Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=3ada6a2fd0c6&tochange=64d6d002e888

Suspect:
9a09523eb5ddaea9228e21d1205a0790fec0533f Mats Palmgren — Bug 859088 - Left/Right Arrow key after selection should move to the beginning/end of selection respectively (on all platforms). r=ehsan

Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Ever confirmed: true
Keywords: regression
Regressed by: 859088

Interesting case... We need to investigate when selection is moved to the end of the last text node in this case.

  • immediately after "Select All"
  • immediately before beforeinput
  • immediately before handling the typing
Severity: -- → S3
Keywords: parity-chrome
OS: Unspecified → All
Hardware: Unspecified → All
Whiteboard: [h2review-noted]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: