[whatwg] pattern attribute

Ian Hickson ian at hixie.ch
Mon Aug 23 04:03:09 PDT 2004


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list