W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2012

Re: [ambient light events LC] Feedback

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 18 Dec 2012 15:01:14 +0100
Message-ID: <CADnb78h3r+UsBEG0HedY3ooAv9FFdRwrqUNPv3gR+RoTNposvw@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
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 2:53 PM, Glenn Maynard <glenn@zewt.org> wrote:
> 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.

Ah fair point. Why not make the empty string part of the enum and use
that? Can't think of another place where we'd use nullable enums and
we do use the emtpy string as default in e.g. XMLHttpRequest.


-- 
http://annevankesteren.nl/
Received on Tuesday, 18 December 2012 14:01:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 18 December 2012 14:01:49 GMT