Closed Bug 736200 Opened 12 years ago Closed 12 years ago

Contacts API: Using cleaner IDs for the mozContact objects

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: etienne, Assigned: gwagner)

Details

Attachments

(1 file)

The ID generated for each mozContact currently looks like

{25c00f01-90e5-c545-b4d4-21E2ddbab9e0}

For various reason devs might want to these IDs to construct dom #id like
prefix_[contactID]

So if it doesn't have any bad side effect it would be great to stripe the "{", "}" and "-" from the mozContact IDs.

This way preventing the need for each mozContacts API user to 
stripe them himself. And facilitating the search by ID.
Assignee: nobody → anygregor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch patchSplinter Review
Comment on attachment 606333 [details] [diff] [review]
patch

We could also change it in _getRandomId() if this is a general problem
Attachment #606333 - Flags: review?(fabrice)
Attachment #606333 - Flags: review?(fabrice) → review+
https://hg.mozilla.org/mozilla-central/rev/ac5f18c521e6
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: