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

[whatwg] pattern attribute

From: Max Romantschuk <max@provico.fi>
Date: Mon, 23 Aug 2004 14:27:10 +0300
Message-ID: <4129D48E.1060506@provico.fi>
Ian Hickson wrote:
>>>No, if the regexp is invalid, it is just ignored.
> Making a reference implementation of anything implies that it will be 
> bug-free, which is highly unlikely. But it's possible that eventually a 
> validator or lint will be created.
> UAs are free to emit warnings when attributes have invalid values. It 
> seems that that would be the best way to go as far as helping developers.

I guess my point is that silent dropping of errors can be very harmful. 
One stellar example of this is the countless web pages out there full of 
HTML and CSS errors which exist thanks to IE's "helpful" HTML correction 
features and CSS error handling.

It may not be the same thing, but I believe it should be as hard as 
possible to construct faulty regexps. If the regexp is dropped silently 
it is likely to be far less useful than in the case of the developer 
being alerted of an error and fixing the error, or in a worst case 
removing the pattern altogether.


Max Romantschuk
Received on Monday, 23 August 2004 04:27:10 UTC

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