Ticket #6033 (closed Bug: fixed)

Opened 4 years ago

Last modified 13 months ago

[IE] Pasting over a readonly block merge the siblings and the pasted content

Reported by: Saare Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.4
Keywords: IE Cc:

Description

  • Load the following HTML:
    <p>
    	Para 1</p>
    <p contenteditable="false">
    	Para 2</p>
    <p>
    	Para 3</p>
    
  • Right click "Para 2".
  • Paste some content.

Notice that para 1, the pasted content and para 3 are merged into one paragraph.

Attachments

krst_13.30.31.png (33.8 KB) - added by krst 4 years ago.
Confirmed on IE8
krst_13.36.15.png (30.0 KB) - added by krst 4 years ago.
Differences between browsers

Change History

Changed 4 years ago by krst

Confirmed on IE8

Changed 4 years ago by krst

Differences between browsers

comment:1 follow-up: ↓ 2 Changed 4 years ago by krst

  • Status changed from new to confirmed
  • Version set to 3.4
  • Component changed from General to Core : Pasting

In my opinion if contenteditable="false" is set, only Copy should be allowed, or everything should be blocked.

comment:2 in reply to: ↑ 1 Changed 4 years ago by fredck

Replying to krst:

In my opinion if contenteditable="false" is set, only Copy should be allowed, or everything should be blocked.

That's true if you're inside read-only content, but not if you select the entire read-only element as a whole, which is what I think is happening in this tc.

A read-only element works much like an image, so it can be entirely deleted/replaced if the selection fully includes it, outside its boundaries.

comment:3 Changed 4 years ago by fredck

Note that the following represents the selection in IE, when right clicking with the above tc:

<p>
	Para 1[</p>
<p contenteditable="false">
	Para 2</p>]
<p>
	Para 3</p>

So, theoretically, joining paragraphs is correct... but of course, this is not the way users see it.

comment:4 Changed 13 months ago by Reinmar

  • Status changed from confirmed to closed
  • Resolution set to fixed

Fixed in 4.3 if fake selection is used (as in widgets).

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy