[whatwg] RE: pattern attribute
Ave.Wrigley at itn.co.uk
Thu Jul 22 03:56:32 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,
Thanks for pointing that out - sorry for repeating a previous thread!
> In summary:
> * Whole-pattern matches appears to be significantly more common.
> * Forms-design applications that support patterns usually make the
> whole-pattern rather than substring match.
I take the point - but I am not sure I understand why the case for whole
pattern over substring matched differs between when they appear in a
form and when they appear in a script (where substring matching is more
common). Is this just an historical artifact, or is there a more
fundamental reason? In any case, isn't this a case of supporting one of
two alternative sources of consistency - consistency with other form
interfaces, and consistency with the existing scripting enviromnent
(where client-side validation is currently implemented)?
This email (and any attachments) is intended solely for the individual(s) to whom addressed. It may contain confidential and/or legally privileged information. Any statement or opinions therein are not necessarily those of ITN unless specifically stated. Any unauthorised use, disclosure or copying is prohibited. If you have received this email in error, please notify the sender and delete it from your system. Security and reliability of the e-mail and attachments are not guaranteed. You must take full responsibility for virus checking.
Independent Television News Limited,
Registered No. 548648 England,
VAT Reg. No: GB 756 2995 81,
200 Gray's Inn Road, London WC1X 8XZ,
Telephone: 020 7833 3000.
More information about the whatwg