Browser sniffing is bad, and having these here encourages unpleasantness.
Keeping the js/nojs ones as those are useful and non-evil (they're an example of feature detection, exposed via CSS here rather than through JS.)
mw.page = {};
/* Client profile classes for <html> */
+ /* Allows for easy hiding/showing of JS or no-JS-specific UI elements */
- var prof = $.client.profile();
$( 'html' )
- .addClass(
- 'client-' + prof.name
- + ' client-' + prof.name + '-' + prof.versionBase
- + ' client-' + prof.layout
- + ' client-' + prof.platform
- + ' client-js' )
+ .addClass('client-js' )
.removeClass( 'client-nojs' );
} )( jQuery );