mediawiki.page.startup: Use document.documentElement instead of 'html'
authorFomafix <fomafix@googlemail.com>
Fri, 13 Mar 2015 09:06:46 +0000 (09:06 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Fri, 13 Mar 2015 09:06:46 +0000 (09:06 +0000)
Change-Id: If443fdc543a0eebcaa3d82ab92eadb39b0f0f196

resources/src/mediawiki.page/mediawiki.page.startup.js

index 4aae606..ddd4f0c 100644 (file)
@@ -4,7 +4,7 @@
 
        // Client profile classes for <html>
        // Allows for easy hiding/showing of JS or no-JS-specific UI elements
-       $( 'html' )
+       $( document.documentElement )
                .addClass( 'client-js' )
                .removeClass( 'client-nojs' );