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

Malcolm Rowe malcolm-what at farside.org.uk
Wed Jun 23 08:29:33 PDT 2004


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 





More information about the whatwg mailing list