W3C home > Mailing lists > Public > public-html-comments@w3.org > April 2010

HTML5 datalist 'suggest box' behavior - not specified in spec?

From: Ehrann Mehdan <Ehrann.Mehdan@actimize.com>
Date: Tue, 13 Apr 2010 11:23:09 +0300
To: "public-html-comments@w3.org" <public-html-comments@w3.org>
Message-ID: <5D9DEDAD7BF5FC4FAAA8CDE4883C74ED5654F018A9@ilex1.adrembi.com>
I saw that the current Opera implementation of the datalist tag and list attribute is simply not good enough
The issue is, that unlike real world suggest boxes, when typing text, the relevant option isn't selected (not working as a real suggest box, but rather a text field and a list box on top of each other)
Looking up in the spec, I saw no requirement on how the list should behave in the browser
I also saw no regard to whether one can dynamically add options to the datalist or mark them as selected (can be a foundation for a workaround to the lacking of support mentioned above)


options are: One, Two, Three
user types the letter 'T' - option 'Two' should be selected, user adds 'h' - 'Three' should be selected
It should behave much like the google suggest feature that became a standard in most web 2.0 sites

If it's not clear in the spec, it will not be implemented in a consistent fashion across browsers

<input type="text" name="number" list="numbers">
  <datalist id="numbers">
   <option value="One">
   <option value="Two">
   <option value="Three">

In order for HTML5 to make it in the real world, it should really replace complex and quirky handmade DHTML solutions, and one of the most common are suggest boxes


Ehrann Mehdan

This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail.
Thank you for your cooperation.
Received on Tuesday, 13 April 2010 08:22:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:26 UTC