Obsolete attribute

According the W3 HTML validator: Warning: The charset attribute on the script element is obsolete.
This commit is contained in:
Nicolas Friedli 2021-03-27 09:22:31 +01:00 committed by GitHub
parent 41e7ea2518
commit de1dc35b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -348,7 +348,6 @@ function tpl_metaheaders($alt = true) {
$jquery = getCdnUrls();
foreach($jquery as $src) {
$head['script'][] = array(
'charset' => 'utf-8',
'_data' => '',
'src' => $src,
) + ($conf['defer_js'] ? [ 'defer' => 'defer'] : []);
@ -356,7 +355,7 @@ function tpl_metaheaders($alt = true) {
// load our javascript dispatcher
$head['script'][] = array(
'charset'=> 'utf-8', '_data'=> '',
'_data'=> '',
'src' => DOKU_BASE.'lib/exe/js.php'.'?t='.rawurlencode($conf['template']).'&tseed='.$tseed,
) + ($conf['defer_js'] ? [ 'defer' => 'defer'] : []);