v 4.2.3: linebrake behind CDATA lost, JavaScript not processing
-
After embedding the call of a JavaScript function into a post/page the Text view of the editor shows:
<script type="text/javascript">// <![CDATA[ myFunction(); // ]]></script>
When calling this page by its URL its HTML code looks like that since today – 23 July 2015:
<script type="text/javascript">// <![CDATA[ myFunction(); // ]]></script>
… all in a single line. And the JavaScript function is not called.
Saving the HTML code as static page and inserting a line break before
myFunction()
solves the problem, the function is called again.And this problem comes up with all pages having JavaScript embedded this way – all of them are drop dead now – without having edited any of them since days.
As the only change to the WordPress system was the update to 4.2.3. last night we are quite sure that this version starts flattening embedded CDATA code.
- The topic ‘v 4.2.3: linebrake behind CDATA lost, JavaScript not processing’ is closed to new replies.