[whatwg] Re: pattern attribute
malcolm-what at farside.org.uk
Thu Jul 22 03:28:50 PDT 2004
Wrigley, Ave writes:
> 1. What is the motivation behind the implicit ^ and $ (start and end of
> string metacharacters)?
Just on this point, see, for example,
* Whole-pattern matches appears to be significantly more common.
* Forms-design applications that support patterns usually make the pattern a
whole-pattern rather than substring match.
* In the current design, it's immediately obvious if you get it wrong (i.e.,
you wanted a substring match, and got a whole-pattern match). Without the
implicit start and end characters, you won't necessarily notice that what
you expected to be a whole-pattern match is actually acting as a substring
More information about the whatwg