On second thoughts, while we are in testing phase, let's run with XHTML Strict all the time. MDL-7861
This commit is contained in:
+1
-4
@@ -2264,10 +2264,7 @@ function force_strict_header($output) {
|
||||
}
|
||||
}
|
||||
|
||||
if (debugging()) { // In any other debugging mode > NONE, strict is on
|
||||
// Substitute document-type, s (PCRE_DOTALL)
|
||||
$output = preg_replace('/(<!DOCTYPE.+?>)/s', $strict, $output);
|
||||
}
|
||||
$output = preg_replace('/(<!DOCTYPE.+?>)/s', $strict, $output); // Always change the DOCTYPE to Strict 1.0
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user