[whatwg] pattern attribute

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 
attribute.

-- 
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