Title: v 4.2.3: linebrake behind CDATA lost, JavaScript not processing
Last modified: August 30, 2016

---

# v 4.2.3: linebrake behind CDATA lost, JavaScript not processing

 *  [mwsat](https://wordpress.org/support/users/mwsat/)
 * (@mwsat)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/v-432-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.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Liquidream](https://wordpress.org/support/users/liquidream/)
 * (@liquidream)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/v-432-linebrake-behind-cdata-lost-javascript-not-processing/#post-6357688)
 * Same problem here, though the workaround I found was to change from using line
   comments “//” to comment block “/* */” and all is good.
 * e.g. OLD code
 *     ```
       <script type="text/javascript">// <![CDATA[
       myFunction();
       // ]]></script>
       ```
   
 * NEW code
 *     ```
       <script type="text/javascript">/* <![CDATA[ */
       myFunction();
       /* ]]> */ </script>
       ```
   
 *  [pabloalmunia](https://wordpress.org/support/users/pabloalmunia/)
 * (@pabloalmunia)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/v-432-linebrake-behind-cdata-lost-javascript-not-processing/#post-6357839)
 * Don’t work in all case. In my code this:
 * `sParameterName[0]`
 * is change as:
 * `sParameterName[0&#093`
 * As a result the code is wrong.
 *  [Robert Chapin](https://wordpress.org/support/users/miqrogroove/)
 * (@miqrogroove)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/v-432-linebrake-behind-cdata-lost-javascript-not-processing/#post-6357872)
 * Reference [https://core.trac.wordpress.org/ticket/33106](https://core.trac.wordpress.org/ticket/33106)
 *  Thread Starter [mwsat](https://wordpress.org/support/users/mwsat/)
 * (@mwsat)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/v-432-linebrake-behind-cdata-lost-javascript-not-processing/#post-6357912)
 * This ticket sounds promising.
    Thanks Robert
 *  [sanjaysaini1](https://wordpress.org/support/users/sanjaysaini1/)
 * (@sanjaysaini1)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/v-432-linebrake-behind-cdata-lost-javascript-not-processing/#post-6357944)
 * I am getting this error in 4.1.6 suddenly.
    This
 * <script>// <![CDATA[
    alert(‘hello’); //]]> </script>
 * gets converted to
 * // <![CDATA[ alert(‘hello’); // ]]>
 * and the js code doesnt execute. I had an embedded twitter feed in my site which
   has stopped working because of this.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘v 4.2.3: linebrake behind CDATA lost, JavaScript not processing’ is closed
to new replies.

## Tags

 * [cdata](https://wordpress.org/support/topic-tag/cdata/)
 * [embedding](https://wordpress.org/support/topic-tag/embedding/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 5 participants
 * Last reply from: [sanjaysaini1](https://wordpress.org/support/users/sanjaysaini1/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/v-432-linebrake-behind-cdata-lost-javascript-not-processing/#post-6357944)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
