Opened 8 years ago

Last modified 8 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

  1. Set a following content using source button:

<p>foo</p>
<p></p>

  1. Press ctrl/cmd+a.
  2. Press enter.
  3. Switch to source mode.

Expected:

<p>&nbsp;</p>

<p>&nbsp;</p>

Actual:

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</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

  1. Set a following content using source button: <p>foo</p>
  2. Press ctrl/cmd+a.
  3. Press enter.
  4. 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.

Change History (1)

comment:1 Changed 8 years ago by Marek Lewandowski

Status: newconfirmed

Tested with Chrome and Safari

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy