New issue
Advanced search Search tips

Issue 767731 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: 3
Type: Bug



Sign in to add a comment

Can't edit contenteditable div if it only contains certain empty elements

Project Member Reported by rlanday@chromium.org, Sep 22 2017

Issue description

Chrome Version: 63.0.3222.0
OS: All

What steps will reproduce the problem?
(1) Navigate to data:text/html, <div contenteditable><h1></h1></div>
(2) Try to edit anywhere in the document

What is the expected result?

There's nowhere in the document you can click to edit the document.

What happens instead?

It should behave the same way <h1 contenteditable></h1> behaves, or at least the way <div contenteditable></div> behaves.

Note: the inner element doesn't have to be an h1. Other elements that are p and div (and also probably all of h2 through h6).
 
This bug is of interest to me because if you have markup that looks like:

<div contenteditable="true"><h1>H</h1>ello</div>

and you do a "select all" on Android and try to type replacement text, the DeleteSelectionCommand that runs leaves us with an empty <h1> inside the div, which makes further editing impossible.
Labels: -OS-iOS
Status: (was: Assigned)
Owner: ----
Status: Available
Project Member

Comment 5 by sheriffbot@chromium.org, Oct 5

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment