Index: trunk/phase3/skins/common/mwsuggest.js |
— | — | @@ -43,14 +43,16 @@ |
44 | 44 | /** |
45 | 45 | * <datalist> is a new HTML5 element that allows you to manually supply |
46 | 46 | * suggestion lists and have them rendered according to the right platform |
47 | | - * conventions. However, the only shipping browser as of early 2010 is Opera, |
48 | | - * and that has a fatal problem: the suggestion lags behind what the user types |
49 | | - * by one keypress. (Reported as DSK-276870 to Opera's secret bug tracker.) |
50 | | - * The code here otherwise seems to work, though, so this can be flipped on |
51 | | - * (maybe with a UA check) when some browser has a better implementation. |
| 47 | + * conventions. Opera as of version 11 has a fatal problem: the suggestion |
| 48 | + * lags behind what the user types by one keypress. (Reported as DSK-276870 to |
| 49 | + * Opera's secret bug tracker.) However, Firefox 4 supports it without |
| 50 | + * problems, so Opera is just blacklisted here. Ideally we wouldn't blacklist |
| 51 | + * future versions, in case they fix it, but the fallback isn't bad at all and |
| 52 | + * the failure if they don't fix it is very annoying, so in this case we'll |
| 53 | + * blacklist future versions too. |
52 | 54 | */ |
53 | | -// var os_use_datalist = 'list' in document.createElement( 'input' ); |
54 | | -window.os_use_datalist = false; |
| 55 | +window.os_use_datalist = 'list' in document.createElement( 'input' ) |
| 56 | + && $.client.profile.name != 'opera'; |
55 | 57 | |
56 | 58 | /** Timeout timer class that will fetch the results */ |
57 | 59 | window.os_Timer = function( id, r, query ) { |