Re: <input type="percent" value="40">

2007/7/27, Dmitry Turin <html60@narod.ru>:
>
> I offer
>   <input type="percent" name="a" value="40">
> which looks so
> (graphic illustrations are in
> http://html6.by.ru/site/html60/en/author/inputpercent_eng.htm )

We already have type="range" with the exact same behavior and more
(values are not limited to the 0-100 range):
"Same as number, but indicates that the exact value is not important,
letting UAs provide a simpler interface than they do for number. For
instance, visual UAs may use a slider control. The step, min, and max
attributes still apply. For this type, step defaults to 1, min
defaults to 0, max defaults to 100, and value  defaults to the min
value."
    — http://www.whatwg.org/specs/web-forms/current-work/#range

-- 
Thomas Broyer

Received on Friday, 27 July 2007 09:13:23 UTC