CTRL+BACKSPACE or its equivalent behavior when deleting block elements

Open
#117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
html
Domain
frontend, web-dev

Research direction

Start with the linked JSFiddle and reproduce the CTRL+BACKSPACE sequence in Edge, Firefox, and Chrome using the described block content. Compare caret movement and deletion results, then determine the intended cross-browser behavior before identifying where the editing specification should document or address it.

Written by the indexing model from the issue text.

Description

ContentEditableTrue

Repro steps:
jsfiddle
 
Place the caret in front of "def" and press CTRL+BACKSPACE

In Edge, all of it is removed in 6 steps:

1st CTRL+BACKSPACE moves the caret at the end of the line above
2nd CTRL+BACKSPACE removes the image
3rd CTRL+BACKSPACE does nothing
4th CTRL+BACKSPACE moves the caret at the end of the line above
5th CTRL+BACKSPACE removes sdsdsd
6th CTRL+BACKSPACE removes asdsad

The experience that I got in Chrome and FF on windows machine seems to differ:

Firefox(43.0.4):
1st CTRL+BACKSPACE removes the image and visually places the caret at the beginning of the very first line.
2nd CTRL+BACKSPACE removes sdsdsd and places caret in front of asdsad
3rd CTRL+BACKSPACE removes asdsad

Chrome(48.0.2564.109 m)/Yandex:
1st CTRL+BACKSPACE removes the image and sdsdsd.
2nd CTRL+BACKSPACE removes asdsad

Dominant language
HTML
Stars
202
Forks
43
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from w3c/editing

All issues in w3c/editing

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.