New issue
Advanced search Search tips

Issue 653965 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug-Regression



Sign in to add a comment

backspace or execCommand('Delete') unwrap tag

Reported by artur.ch...@nytimes.com, Oct 7 2016

Issue description

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

Steps to reproduce the problem:
1. create contenteditable container
2. put following html inside   <p>&nbsp;</p><p><span data-test="test">text</span></p>
3. put cursor at the start of 2 paragraph
4. press backspace or call document.execCommand('Delete')

What is the expected behavior?
Paragraphs should be merged into  <p>&nbsp;<span data-test="test">text</span></p>

What went wrong?
Chrome unwraps <span> tag in result getting following markup: <p>&nbsp;text</p>

Did this work before? N/A 

Chrome version: 53.0.2785.143  Channel: stable
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 23.0 r0

Here is jsfiddle to reproduce https://jsfiddle.net/5js0b5e7/1/

Intresting, but if we have more tags in second paragraph it will work fine:
https://jsfiddle.net/5js0b5e7/2/
 
Components: Blink>Editing

Comment 2 by yosin@chromium.org, Oct 11 2016

Components: -Blink>Editing Blink>Editing>Command
Labels: -OS-Mac OS-All
Status: Available (was: Unconfirmed)

Comment 3 by yosin@chromium.org, Oct 4 2017

Labels: Pri-3
Project Member

Comment 4 by sheriffbot@chromium.org, Oct 4

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