New issue
Advanced search Search tips

Issue 746483 link

Starred by 4 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug

Blocking:
issue gerrit:4271



Sign in to add a comment

Undo should group typing characters even if "input" event handler changes DOM

Project Member Reported by beckysiegel@google.com, Jul 19 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Example URL:
http://jsbin.com/wogided/2/edit?html,css,output

Steps to reproduce the problem:
1.  Go to the JSBin Provided
2. In each of the text boxes type multiple characters, and then 'undo' (CTRL-Z or CMD-Z)

What is the expected behavior?

What went wrong?
In the textarea that triggers innerHTML manipulation, only one character gets removed at a time. In the other one, the textarea is cleared completely. Note that it's not just innerHTML, it is also broken when DOM nodes are removed/replaced.

http://recordit.co/Umw2cPhTxC

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 59.0.3071.115  Channel: stable
OS Version: OS X 10.12.5
Flash Version:
 

Comment 1 by wyatta@google.com, Jul 19 2017

Blocking: gerrit:4271

Comment 2 by aga...@chromium.org, Jul 19 2017

Cc: tkent@chromium.org
Components: -Blink Blink>Editing Blink>Forms>Textarea Blink>JavaScript
Status: Untriaged (was: Unconfirmed)

Comment 3 by tkent@chromium.org, Jul 19 2017

Cc: -tkent@chromium.org
Components: -Blink>Forms>Textarea -Blink>JavaScript

Comment 4 by yosin@chromium.org, Jul 20 2017

Components: -Blink>Editing Blink>Editing>Command
Labels: OS-Linux OS-Windows
Status: Available (was: Untriaged)
Summary: Undo should group typing characters even if "input" event handler changes DOM (was: CTRL-Z (undo) in textarea with event triggering innerHTML or dom removal does not work properly)
It seems modifying DOM in "input" event handler prevents us to merge typing
character commands into one group.
Project Member

Comment 5 by sheriffbot@chromium.org, Jul 20 2017

Labels: Hotlist-Google
Any plans to fix this? It would make PolyGerrit that much easier to use :-)

Comment 7 by yosin@chromium.org, Jan 10 2018

Labels: Pri-3
Project Member

Comment 8 by sheriffbot@chromium.org, Jan 10

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

Sign in to add a comment