Opened 9 years ago
Last modified 9 years ago
#14371 confirmed Bug
[Webkit] Wrong paragraphs inserted on select all + enter
Reported by: | Marek Lewandowski | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Cc: |
Description
You can test well these cases on manual test.
TC1
- Set a following content using source button:
<p>foo</p> <p></p>
- Press
ctrl/cmd+a
. - Press
enter
. - Switch to source mode.
Expected:
<p> </p> <p> </p>
Actual:
<p> </p> <p> </p> <p> </p>
There's one extra paragraph. This paragraph is prepended to the contenteditable without a bogus br (so you can't place selection there).
TC2
- Set a following content using source button:
<p>foo</p>
- Press
ctrl/cmd+a
. - Press
enter
. - Check contenteditable elements using dev inspector.
Expected:
Extra paragraph should have bogus br
.
Actual:
A paragraph is missing bogus br
.
Additional notes
I could repro it on CKE 4.0, didn't check earlier.
Tested with Chrome and Safari