Add disabled <datalist> support to mwsuggest
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 22 Jan 2010 00:51:57 +0000 (00:51 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 22 Jan 2010 00:51:57 +0000 (00:51 +0000)
commitd590110aed1f74b04dd2bb6510e2e430d6c8cf6a
tree64fce5a7c3190307fff513350abf46231f7a0b7e
parentc00e4572b0d18ea8907e98f9522a78030b888721
Add disabled <datalist> support to mwsuggest

<datalist> is an HTML5 element that allows us to provide suggestions to
the browser to display with the proper format with no extra work on our
part.  I got a working implementation, so I'm committing it for the
future, but the only supporting browser (Opera) has a small but fatal
flaw, so it's disabled unconditionally.

I moved around some code to separate out the <div>-specific parts from
the general code, which unfortunately makes this somewhat messy to
review.  (I should probably have done it in two parts.)  There aren't
supposed to be any functional changes in any browser, though, so if you
find any, either fix or revert.

Before enabling this feature, we'd also want to look at UI in shipping
browsers.  WebKit looks like it will implement it more as a combobox, in
which case we wouldn't want to use it for WebKit.  But the code will
still be useful if/when this or any other search-suggest feature becomes
standard.
skins/common/mwsuggest.js