Contacts API -- pref


    attribute DOMString  type;
    attribute DOMString? value;
    attribute boolean pref;

Several classes have a pref attribute that is defined as follows:

pref of type boolean
This attribute indicates whether this instance of the ContactField is the preferred, or primary, value for the contact property this ContactField is representing in the Contact interface. By default, the value is false.

I don't think the spec explains what happens if multiple entries have that boolean set, or none.

Also, I wonder if the simple order of appearance might be a sufficient way to specify preference (maybe users want a different display order and preference order?).


Received on Thursday, 25 August 2011 06:18:37 UTC