Wordpress 5.2.4
X 7.0.4
Just install a clean install and notice
<html class="no-js">
The class no-js not being replaced correctly by Modernizr to the js class
var classPrefix = Modernizr._config.classPrefix || '';
if (isSVG) {
className = className.baseVal;
}
// Change `no-js` to `js` (independently of the `enableClasses` option)
// Handle classPrefix on this too
if (Modernizr._config.enableJSClass) {
var reJS = new RegExp('(^|\\s)' + classPrefix + 'no-js(\\s|$)');
className = className.replace(reJS, '$1' + classPrefix + 'js$2');
}
if (Modernizr._config.enableClasses) {
// Add the new classes
if (classes.length > 0) {
className += ' ' + classPrefix + classes.join(' ' + classPrefix);
}
if (isSVG) {
docElement.className.baseVal = className;
} else {
I have a test X 6.5.6 which works correctly.
There are no errors in the console log, is this a bug with X 7.0.4?