2 * .hlist fallbacks for IE 6, 7 and 8.
3 * @author [[User:Edokter]]
6 var profile = $.client.profile();
8 if ( profile.name === 'msie' ) {
9 if ( profile.versionNumber === 8 ) {
10 /* IE 8: Add pseudo-selector class to last-child list items */
11 mw.hook( 'wikipage.content' ).add( function ( $content ) {
12 $content.find( '.hlist' ).find( 'dd:last-child, dt:last-child, li:last-child' )
13 .addClass( 'hlist-last-child' );
16 else if ( profile.versionNumber <= 7 ) {
17 /* IE 7 and below: Generate interpuncts and parentheses */
18 mw.hook( 'wikipage.content' ).add( function ( $content ) {
19 var $hlists = $content.find( '.hlist' );
20 $hlists.find( 'dt:not(:last-child)' )
22 $hlists.find( 'dd:not(:last-child)' )
23 .append( '<b>·</b> ' );
24 $hlists.find( 'li:not(:last-child)' )
25 .append( '<b>·</b> ' );
26 $hlists.find( 'dl dl, dl ol, dl ul, ol dl, ol ol, ol ul, ul dl, ul ol, ul ul' )
27 .prepend( '( ' ).append( ') ' );
31 }( mediaWiki, jQuery ) );