Closed Bug 430691 Opened 16 years ago Closed 16 years ago

When parsing a "tel" property, ignore type "type" when inferring the value.

Categories

(Toolkit Graveyard :: Microformats, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mkaply, Assigned: mkaply)

References

()

Details

Attachments

(2 files)

This was discovered as a result of the new "microformat acid test" (http://microformatique.com/optimus/test.html) Per the hcard spec, if a tel has no value but it does have a type, when you use the contents of the node to get the value, you are supposed to ignore the type node. I was not doing this. Patch and testcase is attached to fix this. As I was doing this work, I removed "implied" from the overall "tel" and made "value" virtual and discovered that this made the "implied" behavior unnecessary. At some point in time I made virtual work well enough that implied was not needed. So this patch also removes implied support. (only one element was still "implied" - organization-name to org, and the test suite verifies this still works great) So this patch removes some code and makes the referenced testcase work and adds two new tests to cover this case.
Attachment #317568 - Flags: review?(sayrer)
Same problem exists for email, so here is patch and test. This patch depends on previous patch.
Attachment #317568 - Flags: review?(sayrer) → review+
Attachment #321159 - Flags: review?(sayrer)
Attachment #321159 - Flags: review?(sayrer) → review+
fix checked in.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment on attachment 317568 [details] [diff] [review] Fix for problem plus unit test correctness fix for microformats
Attachment #317568 - Flags: approval1.9.0.3?
Comment on attachment 321159 [details] [diff] [review] Handle email case as well microformats correctness fix
Attachment #321159 - Flags: approval1.9.0.3?
Comment on attachment 321159 [details] [diff] [review] Handle email case as well In order to reduce risk and minimize overhead for stability releases, we are not accepting "nice to have" patches in stability releases. As 3.1 is fast approaching, this should not unduly impact time to get these fixes to users.
Attachment #321159 - Flags: approval1.9.0.4? → approval1.9.0.4-
Comment on attachment 317568 [details] [diff] [review] Fix for problem plus unit test In order to reduce risk and minimize overhead for stability releases, we are not accepting "nice to have" patches in stability releases. As 3.1 is fast approaching, this should not unduly impact time to get these fixes to users.
Attachment #317568 - Flags: approval1.9.0.4? → approval1.9.0.4-
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: