#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: |
Description
Demonstration: http://ckeditor.sy24.ru/
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 9 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 9 years ago by
Please note that you shows the document describes HTML instead of XHTML. https://www.w3.org/TR/xhtml1/#C_4 Where I can download uncompressed CKEditor for debug this problem?
comment:3 Changed 9 years ago by
Please see this answer http://stackoverflow.com/a/2375736 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: http://docs.ckeditor.com/#!/guide/dev_source
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 https://www.w3.org/TR/html-markup/script.html#script.