Opened 15 years ago

Last modified 11 years ago

#3105 closed Bug

insertHtml and insertElement should agree on the result — at Version 1

Reported by: Garry Yao Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0 Beta 2
Keywords: IE Webkit Cc:

Description (last modified by Garry Yao)

Currently CKEDITOR.editor.insertHtml and CKEDITOR.editor.insertElement are having different results when the inserted element happened to be malformed or schema-violated.
This is because insertHtml is depending some native methods like pasteHtml to perform revision, from which the result may vary from browser to browser. While insertElement is all about our own logic, which perform no revision at all( The revision logic is proposing at #3100 though).

Change History (2)

comment:1 Changed 15 years ago by Garry Yao

Description: modified (diff)
Keywords: IE Webkit added

The attached test case's result are different from FF to IE to Webkit.

Changed 15 years ago by Garry Yao

Attachment: test-insertHtml.2.patch added

Functional Test Case

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