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

[whatwg] pattern attribute

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 28 Aug 2004 14:34:10 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408281432210.8458@dhalsim.dreamhost.com>
On Mon, 23 Aug 2004, Max Romantschuk wrote:
> > 
> > I'm open to suggestions; what do you think should happen with invalid
> > pattern attributes? Bear in mind the design principle mentioned above; end
> > users shouldn't be exposed to these errors.
> Perhaps there should be a debugging attribute which could be added to a 
> form during development? User agents which supported the attribute could 
> then trigger a suitable error during form validation and abort 
> submission as defined in the current spec. This way there would be a 
> simple way for authors to check their regexps without having to revert 
> to a bunch of additional tools.

Well, no need for an attribute, just turn your browser into debugging 
mode. Firefox, for example, would presumably report an invalid regexp to 
the JS console straight away, if a bug was filed requesting that. No need 
for the user to be exposed to it and no need for any special mode or 

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 28 August 2004 07:34:10 UTC

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