Closed Bug 559493 Opened 16 years ago Closed 16 years ago

Suggest phone numbers for telephone inputs

Categories

(Mozilla Labs :: Identity, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Mardak, Unassigned)

References

Details

Attachments

(1 file)

Similar to how we detect html5 input type=email in bug 556817, we can detect type=tel and suggest phone numbers if we have any!
http://hg.mozilla.org/labs/people/rev/b94acd27a414 Detect type=tel and guess for telephone-like fields and suggest phone numbers when searching for a person's name. This is a bit crude in that the suggestion shows up as Name <phone> with a value of "phone". Perhaps it should always show Name <email> and just have value be the phone...
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attached image call ed ! ? ..
Oh, also, the search is only for the displayname and not for the telephone fields. So if you type a number... hopefully the person's name has a number!
I don't think you should use .getAttribute('type') but .type because .getAttribute('type') is not case-sensitive. Otherwise, you should set the string returned by .getAttribute('type') to lower case. .type is always a valid lower-case type.
For now, Firefox doesn't support type=<html5 stuff>, so node.type ends up reverting to "text". When Firefox supports these, we'll want to switch to the .type property.
Product: Mozilla Services → Mozilla Labs
Target Milestone: --- → --
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: