Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.779
diff -r1.779 common.inc
2065a2066,2071
>   // For inline Javascript to validate as XHTML, all Javascript containing
>   // XHTML needs to be wrapped in CDATA. To make that backwards compatible
>   // with HTML 4, we need to comment out the CDATA-tag.
>   $embed_prefix = "\n<!--//--><![CDATA[//><!--\n";
>   $embed_suffix = "\n//--><!]]>\n";
>  
2067d2072
< 
2072c2077
<         $output .= '<script type="text/javascript">jQuery.extend(Drupal.settings, ' . drupal_to_js(call_user_func_array('array_merge_recursive', $data)) . ");</script>\n";
---
>         $output .= '<script type="text/javascript">' . $embed_prefix . 'jQuery.extend(Drupal.settings, ' . drupal_to_js(call_user_func_array('array_merge_recursive', $data)) . ");" . $embed_suffix . "</script>\n";
2076c2081
<           $output .= '<script type="text/javascript"' . ($info['defer'] ? ' defer="defer"' : '') . '>' . $info['code'] . "</script>\n";
---
>           $output .= '<script type="text/javascript"' . ($info['defer'] ? ' defer="defer"' : '') . '>' . $embed_prefix . $info['code'] . $embed_suffix . "</script>\n";
