#13409 closed Bug (fixed)
List elements incorrectly merged
Reported by: | Szymon Cofalik | Owned by: | Olek Nowodziński |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.2 |
Component: | General | Version: | 4.0 |
Keywords: | Cc: |
Description (last modified by )
Followup for #12729.
Steps to reproduce:
- Set this as editor contents:
<ul> <li><a href="#foo">foo</a> <ol> <li><em>bar</em></li> </ol> </li> </ul>
- Set caret after foo (at the end of the list item).
- Press delete key.
Result: <em>
is inside <a>
Expected result: <em>
should be next to <a>
You can test this bug in this manual test (test available git:7456617935): http://tests.ckeditor.dev:1030/tests/plugins/list/manual/mergelistitems
Change History (14)
comment:1 Changed 8 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 8 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 8 years ago by
Status: | new → confirmed |
---|
comment:4 Changed 8 years ago by
comment:5 Changed 8 years ago by
It should be fixed by #12729, but it looks that it fixed only Backspace
case.
comment:6 Changed 8 years ago by
Description: | modified (diff) |
---|---|
Milestone: | → CKEditor 4.5.1 |
Very strange that it does not work, because we have tests for delete too. To be investigated in 4.5.1.
comment:7 Changed 8 years ago by
Ok, I get now why we haven't noticed this. This bug happens only when merging with a nested list. Does not happen when merging with a list item on the same level.
comment:8 Changed 8 years ago by
There's a http://tests.ckeditor.dev:1030/tests/plugins/list/manual/mergelistitems test, which description I find so obscure that it took me a long, long while to get what's going on there. We should focus on writing MTs that easy, they require no knowledge about the ticket whatsoever.
IMHO, this test should be split into several steps that reflect the problem, like
- Set caret here.
- Press X.
- See if Y is Z.
- Set caret there.
- Press A.
- See if B is C.
...
and then, eventually, at the very end, having ensured testers know what is expected of them, there could be an invitation to play a little bit like
Test merging lists items (and blocks around) with backspace/delete in both editors.
+ general principles.
KISS!
comment:9 Changed 8 years ago by
Owner: | set to Olek Nowodziński |
---|---|
Status: | confirmed → assigned |
comment:10 Changed 8 years ago by
Status: | assigned → review |
---|
Changes in branch:t/13409, but without comment:8 (will be a separate ticket).
comment:11 Changed 8 years ago by
Status: | review → review_failed |
---|
I rebased and pushed one additional commit to branch:t/13409. The code looks good, but some of the new tests fail on IE8 and IE11.
comment:12 Changed 8 years ago by
Status: | review_failed → assigned |
---|
comment:14 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | review → closed |
Fixed on master with git:03c3329.
It was tested and does not work on Chrome, Firefox and IE8-11.