Permalink
Browse files

Fix HTML5 validation for no-js functionality

Fixes the javascript detection script output - html5 validation fails if you use <script type="text/javascript"> - actually should just be defined as <script> - it’s presumed it’s js ;)
  • Loading branch information...
Jonnyauk committed Jan 15, 2018
1 parent 4c05953 commit 7f1b1ea8bed5cbee7a7ef87194d53bbdd7c92cc9
Showing with 1 addition and 1 deletion.
  1. +1 −1 wf-includes/wf-display-functions.php
@@ -776,7 +776,7 @@ function wf_content_width() {
*
*/
function wf_body_js_detect() {
echo '<script type="text/javascript">';
echo ( $this->wfx_doc_type == 'html5' ) ? '<script>' : '<script type="text/javascript">';
echo 'document.body.className = document.body.className.replace("no-js", "js");';
echo '</script>' . "\n\n";
}

0 comments on commit 7f1b1ea

Please sign in to comment.