W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2009

Re: Call for Consensus - Selectors API to Candidate Rec

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 13 Feb 2009 11:14:50 +1100
To: WebApps WG <public-webapps@w3.org>
Message-ID: <20090213001450.GA12788@arc.mcc.id.au>

Boris Zbarsky:
> On John Resig's tests in particular, every single failure in Gecko is  
> due to a violation of this part of the API:
>   Undefined=Empty
> This is using a WebIDL syntax from a working draft that we don't  
> implement yet, and the current JavaScript DOM binding in Gecko always  
> converts undefined in parameters to the string "undefined".
> If this part of WebIDL is stable, we can go ahead and implement it, but  
> I see no obvious evidence of that from the WebIDL working draft.

I started (but did not finish yet) looking at all the uses of DOMString
in various web specs to see what the default behaviour should be for
both [Null] and [Undefined].  So far, it seems that stringifying
undefined to "undefined" is much more widely implemented:


If that does end up being the more common behaviour, I’ll change the
default in Web IDL to be to stringify to "undefined" unless overridden,
and I would suggest Selectors API to use that behaviour, too.

Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 13 February 2009 00:15:39 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:14 UTC