WebAPI/ContactsAPI: Difference between revisions

Jump to navigation Jump to search
add 'key' to ContactProperties per bug 807717, 807688, move key property to a background section to keep documentation
m (→‎API: Remove stray ')
(add 'key' to ContactProperties per bug 807717, 807688, move key property to a background section to keep documentation)
Line 90: Line 90:
             attribute Date                  bday;
             attribute Date                  bday;
             attribute DOMString[]            note;
             attribute DOMString[]            note;
            attribute DOMString[]            key;
             attribute ContactField[]        impp; /* per RFC 4770, included in vCard4 */
             attribute ContactField[]        impp; /* per RFC 4770, included in vCard4 */
             attribute Date                  anniversary; /* new in vCard4 */
             attribute Date                  anniversary; /* new in vCard4 */
Line 173: Line 174:
* ContactAddress 'geo' property components 'latitude', 'longitude' and additional 'altitude' from GeoLocation API
* ContactAddress 'geo' property components 'latitude', 'longitude' and additional 'altitude' from GeoLocation API
* Contact 'gender' property components 'sex', 'gender-identity' (from vCard4/hCard2 in particular)
* Contact 'gender' property components 'sex', 'gender-identity' (from vCard4/hCard2 in particular)
Being considered:
* 'attribute DOMString <span id="key-property">key</span>[]' - Mozilla can be an industry leader here by including public keys in address books by default so communication applications can start using and depending on them. Add to "interface ContactProperties".
** [https://bugzilla.mozilla.org/show_bug.cgi?id=807688 Bug 807688: Add 'key' a'la hCard to Contacts API]
** public keys on web pages: [http://microformats.org/wiki/key-examples key examples research].
** supported by both [https://addons.mozilla.org/en-US/firefox/addon/operator/ Firefox Operator] and [http://h2vx.com/vcf H2VX hCard to vCard].
** not implemented by MOAB, neither vCard import, nor any key field in the UI by default, nor in the UI for adding fields to a contact.


Some common problems:
Some common problems:
Line 352: Line 346:
** see [http://microformats.org/wiki/key-examples#Use_Cases microformats key examples use cases] for more details.
** see [http://microformats.org/wiki/key-examples#Use_Cases microformats key examples use cases] for more details.
* [[Features/Thunderbird/Modern_Address_Book]]
* [[Features/Thunderbird/Modern_Address_Book]]
== Background ==
=== key property ===
* 'attribute DOMString[] key' - Mozilla can be an industry leader here by including public keys in address books by default so communication applications can start using and depending on them. Add to "interface ContactProperties".
** [https://bugzilla.mozilla.org/show_bug.cgi?id=807688 Bug 807688: Add 'key' a'la hCard to Contacts API]
** public keys on web pages: [http://microformats.org/wiki/key-examples key examples research].
** supported by both [https://addons.mozilla.org/en-US/firefox/addon/operator/ Firefox Operator] and [http://h2vx.com/vcf H2VX hCard to vCard].
** not implemented by MOAB, neither vCard import, nor any key field in the UI by default, nor in the UI for adding fields to a contact.


== Articles ==
== Articles ==
canmove, Confirmed users
2,848

edits

Navigation menu