Re: [contacts] Implementation/Spec deltas

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
  http://robineko.com/

Received on Wednesday, 6 October 2010 13:54:00 UTC