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

[whatwg] [wf2] repeat-min and max

From: Henri Sivonen <hsivonen@iki.fi>
Date: Fri, 7 Apr 2006 14:02:18 +0300
Message-ID: <A4471155-0A48-420B-9237-3193E8B0B88F@iki.fi>
On Apr 7, 2006, at 00:11, Henri Sivonen wrote:

> Section 3.4.
> "The repeat-min attribute specifies the number of repetition blocks  
> that the remove button type will ensure are present each time a  
> block is removed. Its value must be a positive integer (one or more  
> digits 0-9 interpreted as a base ten number). If the attribute is  
> omitted or if it has an invalid value then it is treated as if its  
> value was zero."
> Is zero intentionally excluded from the permissible values?  
> Wouldn't it be more natural to spec the integer to be non-negative?

I hit the counterpart issue with repeat-max at:

The test case is wrong according to the current working draft,  
because the value of repeat-max is '0' in the test case and only  
positive integers are allowed values (and other values are ignored).

Even though repeat-max='0' does not make sense if the value  
permanently forbids repetition, wouldn't it make sense to allow non- 
negative integers so that repetition could be dynamically forbidden  
or allowed by changing the attribute value?

Henri Sivonen
hsivonen at iki.fi
Received on Friday, 7 April 2006 04:02:18 UTC

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