W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] RE: pattern attribute

From: Wrigley, Ave <Ave.Wrigley@itn.co.uk>
Date: Thu, 22 Jul 2004 11:56:32 +0100
Message-ID: <5984AE6FCA91944C8E4FAABA4F2822BA019B3ED9@mx2.ITN.LOCAL>
> 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, 
>
http://listserver.dreamhost.com/pipermail/whatwg-whatwg.org/2004-June/00
0320.html 

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
pattern a 
> 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.
Received on Thursday, 22 July 2004 03:56:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC