Open Bug 829426 Opened 12 years ago Updated 2 years ago

pressing Enter after selecting multiple li elements causes subsequent typing to have no effect in a contenteditable div

Categories

(Core :: DOM: Editor, defect)

defect

Tracking

()

Tracking Status
firefox75 --- affected
firefox76 --- affected

People

(Reporter: testing9999, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [h2review-noted])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11

Steps to reproduce:

1. Paste the following into the address bar:
data:text/html,<html><div contenteditable="true" style="height:300px; width:200px; border: solid black 1px; position:absolute; left:20px">testing<ol><li>test1</li><li>test2</li><li>test3</li><li>test4</li></ol>testing</div></html>

2. Double click the first list item and select it together with the second list item.

3. Press enter.

4. Type some characters.


Actual results:

After step 3, the cursor appears to be indented. Step 4 has no effect at all. Moving the cursor out and back to the same position and typing again still has no effect.

See attached screen shot showing position of the cursor.


Expected results:

The behavior should be the same as selecting an entire list item and pressing Enter, where the list escapes, and the cursor exits the list.
Confirm this in Latest Nightly
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:21.0) Gecko/20130114 Firefox/21.0
Build ID: 20130114031033

Also reproducible in Latest Nightly for Windows 7.
Component: Untriaged → DOM: Core & HTML
OS: Mac OS X → All
Product: Firefox → Core
Hardware: x86 → All
Version: 18 Branch → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Is this a regression?
Component: DOM: Core & HTML → Editor
Confirmed the issue also on Firefox 4.0.
Summary: pressing Enter after selecting multiple li elements causes subsequent typing to have no effect in a contentedtiable div → pressing Enter after selecting multiple li elements causes subsequent typing to have no effect in a contenteditable div
Blink and Edge becomes <div contenteditable><div>....</div><ol>...</ol></div>
Gecko is <div contenteditable><ol><br>...</ol></div>

Hmm, Gecko is strange.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0

Confirmed

Simplified test

  • open data:text/html,<ol contenteditable><br><li>^
  • put cursor above ^
  • type

ER: characters appear (chrome)
AR: nothing

Should it be separated in another issue?

Whiteboard: [h2review-noted]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: