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

Re: [ambient light events LC] Feedback

From: Glenn Maynard <glenn@zewt.org>
Date: Tue, 18 Dec 2012 07:53:32 -0600
Message-ID: <CABirCh8Pa5mMRJbrEQoh1FzdXwNsXnocDuTsgJf1BMFJF4J0-A@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, public-device-apis <public-device-apis@w3.org>, public-webapps <public-webapps@w3.org>
On Tue, Dec 18, 2012 at 6:30 AM, Anne van Kesteren <annevk@annevk.nl> wrote:

> > dictionary LightLevelEventInit : EventInit {
> >     LightLevel? value;
> > };
>
> The enum should not be nullable. If you use this drop the ? as that is
> not needed here.
>

That would break this:

* In 6.2.2 (the definition of how to fire the event), if the light
> level can't be determined, the .value attribute of the event should be
> null, not the empty string.  I've already handled the nullability in
> the WebIDL above.
>

-- 
Glenn Maynard
Received on Tuesday, 18 December 2012 13:54:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:56 GMT