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

[whatwg] [wf2] repeat-min and max

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 15 Aug 2006 19:33:15 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0608151933030.25313@dhalsim.dreamhost.com>
On Tue, 15 Aug 2006, Anne van Kesteren wrote:
>
> On Tue, 15 Aug 2006 02:40:53 -0700, Ian Hickson <ian at hixie.ch> wrote:
> > > http://webforms2.testsuite.org/repetition/attributes/repeat-max/001.htm
> > > http://webforms2.testsuite.org/repetition/attributes/repeat-max/003.htm
> > > http://webforms2.testsuite.org/repetition/attributes/repeat-max/004.htm
> > 
> > Negative numbers are definitely not allowed (since they don't consist of
> > just the characters 0-9).
> 
> So what does the browser have to do? Act as if the attribute wasn't specified?

The spec is very clear: "If the attribute is omitted or if it has an 
invalid value then it is treated as if its value was zero."

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 15 August 2006 12:33:15 UTC

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