The <script> syntax is perfectly valid for HTML5.
(and yes, I understand that ZC v1.5.4 ships with an XHTML template).
So ... if you're not putting an HTML5 template onto your site and you need it to pass XHTML validation in the W3C validator,
then there are 2 sets of changes to make:
1. /includes/templates/template_default/jscript/jscript_framework.php, line 9:
Code:
<script type="text/javascript">
and line 15:
Code:
options.url = options.url.replace("&", unescape("&"));
and line 67:
Code:
if (jqXHR.status === 200 * contentType.toLowerCase().indexOf("text/html") >= 0) {
2. /includes/templates/template_default/common/html_header.php, around line 106 change this:
Code:
/** CDN for jQuery core **/
?>
<script>window.jQuery || document.write('<script src="//code.jquery.com/jquery-1.11.1.min.js"><\/script>');</script>
<script>window.jQuery || document.write('<script src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"><\/script>');</script>
to this:
Code:
/** CDN for jQuery core **/
?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"%3E%3C/script%3E'));</script>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
Bookmarks