Contacts API and Portable Contacts: pref versus primary

Hello,

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 
attribute.
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 ).

Thanks,

Arnaud Quillaud

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