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

[whatwg] <progress> draft

From: Ric Hardacre <whatwg@cycloid.f9.co.uk>
Date: Fri, 24 Mar 2006 09:19:17 +0000
Message-ID: <4423B995.30501@cycloid.f9.co.uk>


Ian Hickson wrote:
> I've added <progress> to the draft too.
> 
> At the moment I support a range of "%" characters in the body of the 
> element:
> 
>    <progress>5%</progress>
>    <meter>50&x2030;</meter>
> 
> ...etc. This seems to be a good thing to me. However, I currently also say 
> that these work in the "value" attribute. I'm thinking that we should make 
> "value" be purely a floating point number. This would dramatically 
> simplify the processing model and would also let the DOM attributes simply 
> reflect the content attributes -- right now I'm not sure how to do the DOM 
> attribute of "value" because of this.
> 
> What do people think? Is it valuable to be able to do:
> 
>    <progress value="5%"/>


how about a "%" indicates a percentage from 0 to 100. if the % is 
missing then assume a fraction so:

<progress value="0.4375"></progress>
<progress value="43.75%"></progress>

are the same as far as DOM and scripting are concerned, for both: 
element.value == 0.4375;

<progress value="43.75"></progress>

would render as "100%" as it is greater than 1.0, the maximum fractional 
amount


> 
> ...instead of either of these:
> 
>    <progress value="0.05"/>
>    <progress>5%</progress>
> 
> ...?
> 
Received on Friday, 24 March 2006 01:19:17 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:45 UTC