W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2011

[whatwg] Form input element for value-unit pairs

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Fri, 18 Mar 2011 13:38:16 +0100
Message-ID: <754BA1F9-88CA-4461-8807-60FD1BB49E3D@crissov.de>
Markus Ernst:
> Am 15.03.2011 17:36 schrieb Christoph P?per:
>>   <input name=fontsize type=number unit=typo>
>>   <datalist id=typo>
>>     <option value=2.835 label=pt>
>>     <option value=1 label=mm>
>>   </datalist>
> What I do not yet understand is, in what point does this proposal enhance usability compared to a dropdown box with the units, and some client side script that does the conversion?

The less form widgets the better, usually. I also hope browser developers can come up with a better control than the next webdesigner, and it would be more consistent across sites, too. You could, for example and perhaps, enter ?4mm<enter>? instead of ?4<tab><down><down><enter>?.
Received on Friday, 18 March 2011 05:38:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:31 UTC