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

[whatwg] "pattern" attribute definition

From: Malcolm Rowe <malcolm-what@farside.org.uk>
Date: Thu, 22 Jul 2004 18:01:49 +0100
Message-ID: <courier.40FFF2FD.0000541C@mail.farside.org.uk>
Hi Ian, 

When we define 'pattern', we define it in terms of an ECMAScript RegExp 
object (or so it seems), but we don't define what the values of the 
'ignoreCase' and 'multiline' properties of a hypothetical object should be. 

I know that 'multiline' was present at some point, and it's now been dropped 
 - what was the reason for that? I do think that we should explcitly mention 
whether the expression should be evaluated in a case-sensitive way or not. 

Secondly, is '/' special inside an expression? In a 'normal' regexp (in 
ECMAScript or perl), you'd expect to have to escape it, since the language 
uses that symbol to terminate the pattern definition - though in perl, you 
could also use another character if you wanted to, for example: m|^/etc/|. 

Would we expect 'pattern="/etc/.*" to work? Would 'pattern="\/etc\/.*" work 
just as well? Should we include a note around that area in the definition of 
'pattern'? 

Regards,
Malcolm
Received on Thursday, 22 July 2004 10:01:49 UTC

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