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

[whatwg] pattern attribute

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 23 Aug 2004 11:03:09 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408231101480.812@dhalsim.dreamhost.com>
On Mon, 23 Aug 2004, Max Romantschuk wrote:
>>
>> No, if the regexp is invalid, it is just ignored.
> 
> This is both a good thing and a bad thing. Ignoring the regexp makes 
> sense, but also makes debugging complex regexps a nightmare. Maybe 
> WHATWG should provide a reference implementation regexp checker and/or 
> debugger for these purposes?

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.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 23 August 2004 04:03:09 UTC

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