Skip to content

Commit

Permalink
js class should be added regardless of no-js presence
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 16, 2010
1 parent c32cecb commit 07ba578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ window.Modernizr = (function(window,doc,undefined){
ret._version = version;

// Remove "no-js" class from <html> element, if it exists:
docElement.className=docElement.className.replace(/\bno-js\b/,'js');
docElement.className=docElement.className.replace(/\bno-js\b/,'') + ' js';

// Add the new classes to the <html> element.
docElement.className += ' ' + classes.join( ' ' );
Expand Down

0 comments on commit 07ba578

Please sign in to comment.