Opened 16 years ago
Closed 12 years ago
#3105 closed Bug (invalid)
insertHtml and insertElement should agree on the result
Reported by: | Garry Yao | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 Beta 2 |
Keywords: | IE Webkit | Cc: |
Description (last modified by )
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).
Attachments (1)
Change History (6)
comment:1 Changed 16 years ago by
Description: | modified (diff) |
---|---|
Keywords: | IE Webkit added |
comment:2 Changed 16 years ago by
Milestone: | CKEditor 3.0 → CKEditor 3.x |
---|
comment:3 Changed 16 years ago by
Version: | SVN (FCKeditor) → CKEditor 3.0 Beta 2 |
---|
comment:5 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Over the years meaning of these methods changed. Currently both are implemented using only our custom code, but insertHtml is more "external" (it does clean up and filtering) when insertElement is an "internal" method (I do not mean that it is private, but that it does not handle input, invalid data).
The attached test case's result are different from FF to IE to Webkit.