W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2004

[whatwg] Re: Web Forms 2.0 Substantial - Section 2

From: Malcolm Rowe <malcolm-what@farside.org.uk>
Date: Wed, 23 Jun 2004 16:29:33 +0100
Message-ID: <courier.40D9A1DD.00001C0F@mail.farside.org.uk>
Malcolm Rowe writes:
> > http://www.jacobsm.com/regexp.htm seems to say "match anything", so
> > you could define the empty string as being the pattern "" without the
> > ^$ bit.
> Note that, in contrast, the production '^$' matches only *empty* inputs. 
> What do we want pattern="" to mean - match empty inputs, or match any 
> input? I'd tend to the former.

Replying to myself; I've just noticed that this /is/ explicit in the current 
version (I thought it was only implicitly described). So yes, we should say 
that an empty or omitted attribute is equivalent to the empty regexp. 

Regards,
Malcolm 
Received on Wednesday, 23 June 2004 08:29:33 UTC

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