W3C home > Mailing lists > Public > public-device-apis@w3.org > October 2010

Re: [contacts] Implementation/Spec deltas

From: Robin Berjon <robin@robineko.com>
Date: Wed, 6 Oct 2010 15:53:02 +0200
Cc: Mike Hanson <mhanson@mozilla.com>, public-device-apis@w3.org
Message-Id: <1E4D59B4-C9BC-4D50-8718-F206A45CF317@robineko.com>
To: Rich Tibbett <rich.tibbett@gmail.com>
On Oct 6, 2010, at 15:43 , Rich Tibbett wrote:
> - W3C API includes error codes rather than strings for error callbacks. Any feedback on what works best here? Codes might be useful for I18n error reporting although messages are much more direct and easily understandable (and can contain reference error codes if required). Any recommendations or thoughts?

Do you mean strings as in "You did something stupid" or rather as in "STUPID_ERROR"? If the former, I agree that it's better to have some identifier for identification and localisation, if the latter, then I tend to prefer string constants to numerical ones  but I won't bore you by repeating the arguments for that yet again!

> - The ContactFindOptions.updatedSince attribute has been changed to accept a Date object. We have this object in the JS environment so it makes sense to use it. Initially it was defined to be xs:datetime (as included in the Mozilla impl). Similarly, birthday and revision attributes on the Contact interface also now accept Date inputs.

Can you set the year to 0000 on a Date object? If not, there's a problem for birthdays.

Otherwise, this is cool! Does Mozilla have a test suite, too?

Robin Berjon
  robineko  hired gun, higher standards
Received on Wednesday, 6 October 2010 13:54:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:23 UTC