Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#14452 closed Bug (invalid)

CKEditor not support XHTML

Reported by: Mikhail Gavrilov Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.7
Keywords: Cc:



Error in console: ckeditor.js:762 Uncaught SyntaxError: Failed to set the 'innerHTML' property on 'Element': The provided markup is invalid XML, and therefore cannot be inserted into an XML document.

Change History (3)

comment:1 Changed 8 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

First of all the <![CDATA[ ]]> should be written as //<![CDATA[ //]]> and second, script has to be written as <script src="ckeditor.js"></script>. Please see

comment:2 Changed 8 years ago by Mikhail Gavrilov

Please note that you shows the document describes HTML instead of XHTML. Where I can download uncompressed CKEditor for debug this problem?

comment:3 Changed 8 years ago by Jakub Ś

Please see this answer and especially this part:

Because <![CDATA[ is not valid JS, you'll get a JavaScript syntax error. (The other answers are wrong here: it's not just very old browsers, but all HTML4 browsers, that will give errors for an uncommented CDATA section in script.)

You can get source code from:!/guide/dev_source

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