Closed
Bug 398676
Opened 17 years ago
Closed 17 years ago
Add support for tel: protocol
Categories
(Toolkit Graveyard :: Microformats, defect)
Toolkit Graveyard
Microformats
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mkaply, Assigned: mkaply)
Details
Attachments
(1 file, 1 obsolete file)
4.13 KB,
patch
|
sayrer
:
review+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
Need to add support for tel: protocol
Assignee | ||
Comment 1•17 years ago
|
||
This patch adds support for the mentioned protocols. This required a small change to how implied properties work. I wasn't honoring the datatype of the implied property.
Comment 2•17 years ago
|
||
Are you following RFC 3966 or 2806, or some bastardized combination of the two?
Assignee | ||
Comment 3•17 years ago
|
||
Probably a bastardization. from http://microformats.org/wiki/hcard-parsing For the "tel" property in particular, when the element is: * <a href="tel:..."> OR <area href="tel:..."> : parse the value of the 'href' attribute, omitting the "tel:" prefix and any "?" query suffix (if present), in the attribute. For details on the "tel:" URL scheme, see RFC 2806. Basically I'm just pulling off the tel:/modem:/fax: protocol and using the rest as the phone number with no parsing.
Assignee | ||
Comment 4•17 years ago
|
||
Fixed in Operator. Moving to Microformats core.
Component: Operator → Microformats
Product: Mozilla Labs → Toolkit
QA Contact: operator → microformats
Assignee | ||
Updated•17 years ago
|
OS: Windows XP → All
Hardware: PC → All
Version: unspecified → Trunk
Assignee | ||
Comment 5•17 years ago
|
||
Comment on attachment 291673 [details] [diff] [review] Support for tel/modem/fax protocols This patch isn't doing anything really technically. Just if there is a protocol for a telephone number, strip it and use the rest as a phone number.
Attachment #291673 -
Flags: review?(sayrer)
Comment 6•17 years ago
|
||
needs tests
Assignee | ||
Comment 7•17 years ago
|
||
Sorry, should have said that. Tests are already in, but commented out in test_Microformats_hcard.html http://lxr.mozilla.org/seamonkey/source/toolkit/components/microformats/tests/test_Microformats_hCard.html?raw=1
Comment 8•17 years ago
|
||
Oh good. Attach a new patch with those and I'll r+.
Assignee | ||
Comment 9•17 years ago
|
||
Yeah with tests is much better. Especially since those tests didn't work at first when I uncommented them.
Attachment #291673 -
Attachment is obsolete: true
Attachment #297601 -
Flags: review?
Attachment #291673 -
Flags: review?(sayrer)
Updated•17 years ago
|
Attachment #297601 -
Flags: review? → review+
Assignee | ||
Updated•17 years ago
|
Attachment #297601 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #297601 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 10•17 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•