Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -25,8 +25,14 @@ |
26 | 26 | var opera7_bugs = is_opera_seven && !is_opera_95; |
27 | 27 | var opera95_bugs = /opera\/(9\.5)/.test( clientPC ); |
28 | 28 | } |
29 | | -// Start at 4 to minimize the chance of breaking on IE10 :) |
30 | | -var ie6_bugs = /msie [4-6]/.test( clientPC ); |
| 29 | +// As recommended by <http://msdn.microsoft.com/en-us/library/ms537509.aspx>, |
| 30 | +// avoiding false positives from moronic extensions that append to the IE UA |
| 31 | +// string (bug 23171) |
| 32 | +var ie6_bugs = false; |
| 33 | +if ( /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec( clientPC ) != null |
| 34 | +&& parseFloat( RegExp.$1 ) <= 6.0 ) { |
| 35 | + ie6_bugs = true; |
| 36 | +} |
31 | 37 | |
32 | 38 | // Global external objects used by this script. |
33 | 39 | /*extern ta, stylepath, skin */ |