Open Bug 1844021 Opened 1 year ago Updated 1 year ago

Designmode does not select the HR element

Categories

(Core :: DOM: Editor, defect)

Firefox 115
defect

Tracking

()

UNCONFIRMED

People

(Reporter: peter, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0

Steps to reproduce:

Place document into designmode = true.
Click on a HR element. Attempt to delete it or type some content to insert after it.

Actual results:

Pressing delete key deletes content after it. Pressing backspace deletes content above it. There is no perceivable way to delete it.
If it is the last element in the body, then the caret cannot be moved after it; any typing is placed before the element.

Expected results:

Delete or Backspace key should have deleted the HR element.
Typing should insert characters after the element.
Caret should be able to be positioned after the element.
Selection TargetNode should be set to the HR element, not the BODY.
Double click should highlight the element.
HR element should be treated like any other element that can be selected, dragged, deleted etc.

Attached file testHR.html

Simple HTML to use for editing.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

I can reproduce this issue with Fx 117 and Fx 102, so it doesn't look like a regression.

Severity: -- → S3
Component: DOM: Core & HTML → DOM: Editor
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: