Re: [selectors-api] Use case for passing invalid selector

On Tue, 9 Dec 2008, Lachlan Hunt wrote:
> >
> > # The caller must pass a valid group of selectors.
> 
> The whole point of including the statement is to define what valid input 
> is permitted for the method to work without throwing an exception.  It 
> doesn't prevent authors from passing invalid selectors anyway, and just 
> because they may have a perfectly good reason to do so, doesn't make the 
> input itself valid.

The statement in the spec says that they're not allowed to pass invalid 
selectors, which means that in the case Simon mentioned, you are requiring 
that authors check that the selector is valid before passing the selector 
in. Removing this line doesn't make the selector valid; the selector spec 
already defines what is valid and what is not.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 9 December 2008 13:22:47 UTC