Closed
Bug 559493
Opened 16 years ago
Closed 16 years ago
Suggest phone numbers for telephone inputs
Categories
(Mozilla Labs :: Identity, defect)
Mozilla Labs
Identity
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Mardak, Unassigned)
References
Details
Attachments
(1 file)
43.77 KB,
image/png
|
Details |
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!
Reporter | ||
Comment 1•16 years ago
|
||
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
Reporter | ||
Comment 2•16 years ago
|
||
Reporter | ||
Comment 3•16 years ago
|
||
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!
Comment 4•16 years ago
|
||
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.
Reporter | ||
Comment 5•16 years ago
|
||
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.
![]() |
||
Updated•15 years ago
|
Product: Mozilla Services → Mozilla Labs
Target Milestone: --- → --
You need to log in
before you can comment on or make changes to this bug.
Description
•