W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: [ambient light events LC] Feedback

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 18 Dec 2012 12:11:24 -0800
Message-ID: <50D0CDEC.8010405@mit.edu>
To: Anne van Kesteren <annevk@annevk.nl>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, public-webapps <public-webapps@w3.org>
On 12/18/12 12:09 PM, Anne van Kesteren wrote:
> FWIW, in the dictionary you do not need to define a default value, at
> least not as far as events are concerned.

That's true, but it might save on the amount of prose needed to define 
the behavior.  That said,

> For events you need to define a default value in prose (because of document.createEvent()).

Yeah, that really makes it so there's no benefit to having a default 
value in the dictionary in this case.

> It needs to be neither nullable nor have a default value. For the
> interface my suggestion was indeed to use the empty string for the
> reason you state.

Makes sense.

Received on Tuesday, 18 December 2012 20:11:53 UTC

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