Re: [selectors-api] Stringifying undefined

On Wed, 18 Feb 2009 15:05:42 +0100, Lachlan Hunt  
<lachlan.hunt@lachy.id.au> wrote:
> [...] We have a number of options:
>
> 1. null -> "null", undefined -> "undefined"
> 2. null -> "", undefined -> "undefined"
> 3. null -> "", undefined -> "" (current spec requirement)
>
> Option #1 is the ECMAScript default, and the default defined by WebIDL.  
>   This is currently implemented by IE8.
>
> Option #2 is currently implemented by Mozilla.
>
> Option #3 is currently implemented by Opera and WebKit.

So ideally what we do here is simply in line with how we plan to make all  
APIs that accept strings work (with exceptions).


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Wednesday, 18 February 2009 15:35:44 UTC