[whatwg] Web Forms 2.0 patterns...

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