[whatwg] Form input element for value-unit pairs

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