Opened 12 years ago
Last modified 12 years ago
#9961 confirmed Bug
Webkit: Deleting empty list items result in BR inserted before text.
Reported by: | dyland | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Lists | Version: | 3.0 |
Keywords: | Webkit | Cc: |
Description (last modified by )
- In an empty editor, type "test"
- Click on the Numbered List button to make it a list.
- Move the cursor to before "test".
- Press Enter twice, so that now you have two empty list items, and the third one with "test".
- With the cursor still right before "test", click on Increase Indent button.
- Now, select the first two list items by double clicking on the first line and dragging into the second line. (See screenshot).
- Press delete.
Actual: Two bullets render on the first line (which is normal behaviour), the text appears on the second which is a bug. (See screenshot)
Attachments (2)
Change History (5)
Changed 12 years ago by
Attachment: | select first two items.png added |
---|
Changed 12 years ago by
Attachment: | delete first two items.png added |
---|
screenshot after deleting the first two items
comment:2 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Keywords: | Webkit added |
Summary: | deleting empty list items result in two bullets on the same line → Webkit: Deleting empty list items result in BR inserted before text. |
comment:3 Changed 12 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.0.2 (GitHub - master) → 3.0 |
@dyland I have modified original TC because what you have described is simply how browsers behave.
Webkit shows it perfectly by highlighting the selection. What you do is select contents of 1st list element and second list element which after deletion will result in something you have described.
You will get the same in every browser and when using element with contenteditable="true" (with no editor logic). The only difference is that browser doesn't insert BR element after li like CKEditor does it in Webkit.
To summarize:
- You start with:
<ol> <li> </li> <li> <ol> <li>test</li> </ol> </li> </ol>
- You make selection like in point 6 of original TC and press delete
- In Webkit using CKEditor you get:
<ol> <li> <ol> <li><br /> test</li> </ol> </li> </ol>
The only difference between native behaviour and CKEditor used in other browsers is this extra BR being inserted before "test".
Problem can be reproduced from CKEditor 3.0.
screenshot of selecting the first two list items