Remove some unnecessary IE 6 hacks
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 10 Aug 2014 01:12:34 +0000 (03:12 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 10 Aug 2014 01:12:34 +0000 (03:12 +0200)
We dropped JS support for IE 6. These workarounds for its bugs are no
longer necessary, because this code is no longer loaded. (The CSS
files modified are parts of modules that require JS support.)

We probably have a lot more, these just came up when grepping for
'IE6' and were obvious.

Change-Id: I7588b03f6ade699ddda4ec28be6c6f512e4b0ea8

resources/src/jquery/jquery.suggestions.css
resources/src/mediawiki/mediawiki.notification.css
tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js

index ea65946..15cd926 100644 (file)
@@ -9,11 +9,6 @@
        border: none;
        z-index: 1099;
        padding: 0;
-       margin: -1px -1px 0 0;
-}
-
-/* IGNORED BY IE6 */
-html > body .suggestions {
        margin: -1px 0 0 0;
 }
 
index 0c8152e..ae399ce 100644 (file)
        position: fixed;
 }
 
-* html .mw-notification-area-floating {
-       /* Make it at least 'absolute' in IE6 since 'fixed' is not supported */
-       position: absolute;
-}
-
 .mw-notification {
        padding: 0.25em 1em;
        margin-bottom: 0.5em;
index 842817f..1005316 100644 (file)
 
                // Put this text in the span and verify it doesn't fit
                $span.text( spanTextNew );
-               // In IE6 width works like min-width, allow IE6's width to be "equal to"
-               if ( $.client.test( { 'msie': 6 }, $.client.profile(), true ) ) {
-                       assert.gtOrEq( $span.width(), $span.parent().width(), 'Fit is maximal (adding two characters makes it not fit any more) - IE6: Maybe equal to as well due to width behaving like min-width in IE6' );
-               } else {
-                       assert.gt( $span.width(), $span.parent().width(), 'Fit is maximal (adding two characters makes it not fit any more)' );
-               }
+               assert.gt( $span.width(), $span.parent().width(), 'Fit is maximal (adding two characters makes it not fit any more)' );
        } );
 
 }( jQuery ) );