With <datalist> and the list attribute on the input element, authors can provide suggestions to the user. On Firefox Desktop, they are shown like autocomplete suggestions. It would be nice to have them shown in Firefox Mobile given that authors should check if list and datalist are available and might assume that it will work on Firefox Mobile.
Is it going to break Fennec? :D
It should not ;)
I don't think this should be considered as an enhancement: feature detection will return a false positive on Firefox Mobile if it's not implemented.
But it is implemented in Firefox Mobile, isn't it? There's just no UI for it, atm.
(In reply to comment #5) > But it is implemented in Firefox Mobile, isn't it? There's just no UI for it, > atm. It's implemented in Gecko and Firefox has an UI for it, not Firefox Mobile. That means you can't use the feature in Firefox Mobile.
I'm actually reworking the autocompletion UI for Firefox Mobile, I will have a look to see if I can fix that in the process
If we can't implement a UI for <datalist>, we should show the content of the <datalist> element (as if it was not implemented). I've recently fixed a similar bug in WebKit : https://bugs.webkit.org/show_bug.cgi?id=52214 and I'd be sad if Firefox made the same mistake :(
Created attachment 516311 [details] [diff] [review] Patch The patch add support for the suggestions thought the new autocomplete mechanism. For the moment the suggestions have the same exact look as normal autocomplete results (probably need Madhava's for that)
This patch won't make it for Fennec 4. Please file another bug to do any type of work to disable datalist support from the platform for Fennec 4.0
I have filled bug 638833 for moving to display: inline from display: none; for the moment.
6 years ago
any screenshots I can see?
Created attachment 523052 [details] [diff] [review] Patch And the patch updated on trunk
Comment on attachment 523052 [details] [diff] [review] Patch Needs tests!
Created attachment 523186 [details] [diff] [review] Tests Tests!
Verified on build: Mozilla /5.0 (Android;Linux armv7l;rv:5.0a2) Gecko/20110414 Firefox/5.0a2 Fennec/5.0a2 Device: LG Optimus 2X (Android 2.2) The suggestion pop-up flickers when taping in the text field or when you dismiss the keyboard, can you see this too?