W3C home > Mailing lists > Public > public-device-apis@w3.org > May 2011

Contacts API and Portable Contacts: pref versus primary

From: Arnaud Quillaud <arnaud.quillaud@oracle.com>
Date: Thu, 19 May 2011 15:51:58 +0200
Message-ID: <4DD5207E.6020109@oracle.com>
To: portablecontacts@googlegroups.com, public-device-apis@w3.org

Going through the interesting exercise of trying to map vCard/Portable 
Contacts/Contacts API.

Poco makes use of a "primary" attribute to indicate the preferred value 
when a field is multivalued when W3C uses a "pref" attribute.

Given the otherwise very welcomed similarities between the 2 APIs, this 
looks surprising.

Somehow related: the Contacts API |ContactAddress| 
<http://www.w3.org/TR/contacts-api/#idl-def-ContactAddress> interface 
does not include a pref/primary attribute, nor does it include a type 
On the other hand, Portable Contacts allows those attributes to be 
present (http://portablecontacts.net/draft-spec.html#anchor17), although 
it might have been useful to specifically list those in the addresses 
element definition 
(http://portablecontacts.net/draft-spec.html#address_element ).


Arnaud Quillaud
Received on Thursday, 19 May 2011 13:52:40 UTC

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