2 * .hlist fallbacks for IE 8.
3 * @author [[User:Edokter]]
6 var profile
= $.client
.profile();
8 if ( profile
.name
=== 'msie' && profile
.versionNumber
=== 8 ) {
9 /* Add pseudo-selector class to last-child list items */
10 mw
.hook( 'wikipage.content' ).add( function ( $content
) {
11 $content
.find( '.hlist' ).find( 'dd:last-child, dt:last-child, li:last-child' )
12 .addClass( 'hlist-last-child' );
15 }( mediaWiki
, jQuery
) );