[whatwg] Web Forms 2.0 patterns...

Jonas Sicking jonas at sicking.cc
Thu Dec 16 18:20:15 PST 2004


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



More information about the whatwg mailing list