Skip to content
Snippets Groups Projects
Commit b1e895f8 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #272636 by dvessel: drupal.js overwrites class of html element, rather than adding to it.

parent 69a7d806
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -266,7 +266,7 @@ Drupal.ahahError = function(xmlhttp, uri) {
// Global Killswitch on the <html> element
if (Drupal.jsEnabled) {
// Global Killswitch on the <html> element
document.documentElement.className = 'js';
$(document.documentElement).addClass('js');
// 'js enabled' cookie
document.cookie = 'has_js=1; path=/';
// Attach all behaviors.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment