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

[whatwg] Web Forms 2.0 patterns...

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 17 Dec 2004 03:20:15 +0100
Message-ID: <41C2425F.50806@sicking.cc>
Jim Ley wrote:
>>Could you give a realistic example of where that could be a problem?
> 
> The obvious example is leading and trailing whitespace, this is almost
> universally accepted and stripped, having to force \s* \s* in the
> pattern for all these cases is a pain.  Together with the lack of
> consistency with those of us who already have regular expressions in
> our validation workflow.

Maybe an additional attribute stripws="both" could stript whitespace at 
the beginning and/or end before validating or submitting the information 
would help that.

Not the greatest idea I admit, figured I should mention it though...

/ Sicking
Received on Thursday, 16 December 2004 18:20:15 UTC

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