Issue 767731 in chromium: Can't edit contenteditable div if it only contains certain empty elements

7 views
Skip to first unread message

rlan… via monorail

unread,
Sep 21, 2017, 10:04:09 PM9/21/17
to editi...@chromium.org
Status: Assigned
Owner: rla...@chromium.org
CC: editi...@chromium.org
Components: Blink>Editing

New issue 767731 by rla...@chromium.org: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731

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).

--
You received this message because:
1. You were specifically CC'd on the issue
2. You are auto-CC'd on all issues in component Blink>Editing

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

rlan… via monorail

unread,
Sep 21, 2017, 10:05:26 PM9/21/17
to editi...@chromium.org

Comment #1 on issue 767731 by rla...@chromium.org: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c1

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.

rlan… via monorail

unread,
Sep 21, 2017, 10:05:45 PM9/21/17
to editi...@chromium.org
Updates:
Labels: -OS-iOS

Comment #2 on issue 767731 by rla...@chromium.org: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c2

(No comment was entered for this change.)

rlan… via monorail

unread,
Oct 4, 2017, 9:54:10 PM10/4/17
to editi...@chromium.org
Updates:
Status:

Comment #3 on issue 767731 by rla...@chromium.org: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c3

rlan… via monorail

unread,
Oct 4, 2017, 9:56:21 PM10/4/17
to editi...@chromium.org
Updates:
Owner: ----
Status: Available

Comment #4 on issue 767731 by rla...@chromium.org: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c4

sheriff… via monorail

unread,
Oct 5, 2018, 12:05:09 PM10/5/18
to editi...@chromium.org
Updates:
Labels: Hotlist-Recharge-Cold
Status: Untriaged

Comment #5 on issue 767731 by sheri...@chromium.org: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c5

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

sheriffbot via monorail

unread,
Oct 11, 2019, 11:47:47 AM10/11/19
to editi...@chromium.org
Updates:
Status: Untriaged

Comment #7 on issue 767731 by sheri...@chromium.org: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c7


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

--
You received this message because:
1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment or make updates.

sheriffbot via monorail

unread,
Oct 12, 2020, 11:49:23 AM10/12/20
to editi...@chromium.org
Updates:
Status: Untriaged

Comment #9 on issue 767731 by sheriffbot: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c9

snianu via monorail

unread,
Mar 9, 2021, 9:04:12 PM3/9/21
to editi...@chromium.org
Updates:
Status: Available

Comment #11 on issue 767731 by sni...@microsoft.com: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c11

Still repros on M89

sheriffbot via monorail

unread,
Mar 10, 2022, 12:02:03 PM3/10/22
to editi...@chromium.org
Updates:
Status: Untriaged

Comment #13 on issue 767731 by sheriffbot: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c13


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

aanala via monorail

unread,
Mar 10, 2022, 12:47:55 PM3/10/22
to editi...@chromium.org

Comment #14 on issue 767731 by aan...@google.com: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c14

As per the steps in comment #0, , the following is observed in below chrome versions

OS:Mac OS 12.2

Stable: 99.0.4844.51
Beta: 100.0.4896.20
Dev: 101.0.4919.0
Canary: 101.0.4935.0

Attachments:
Screen Recording 2022-03-10 at 9.43.15 AM.mov 9.5 MB

snianu via monorail

unread,
Mar 10, 2022, 6:58:43 PM3/10/22
to editi...@chromium.org
Updates:
Status: Available

Comment #15 on issue 767731 by sni...@microsoft.com: Can't edit contenteditable div if it only contains certain empty elements
https://bugs.chromium.org/p/chromium/issues/detail?id=767731#c15


(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages