[whatwg] Re: Web Forms 2.0
ryan at ryancannon.com
Fri Oct 7 12:21:17 PDT 2005
attributes, I came across a stumbling block. At times, form
validation requires a "not pattern" result, i.e. if a certain pattern
matches the element value, the validation engine should return an
error. The best real-world example of this type of implementation
would be a form field with an initial value that must be changed in
order to be processed as valid.
I would suggest an attribute name notPattern, implemented as a
reverse of the pattern attribute.
<input type="text" required="required" notPattern="First Name\s*"
value="First Name" />
I hope it is not too late in this versions timeframe to bring such
functionality in, as it seems impossible right now.
More information about the whatwg