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)
Toolkit Graveyard
Microformats
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mkaply, Assigned: mkaply)
References
()
Details
Attachments
(2 files)
4.75 KB,
patch
|
sayrer
:
review+
mconnor
:
approval1.9.0.4-
|
Details | Diff | Splinter Review |
2.31 KB,
patch
|
sayrer
:
review+
mconnor
:
approval1.9.0.4-
|
Details | Diff | Splinter Review |
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)
Assignee | ||
Comment 1•16 years ago
|
||
Same problem exists for email, so here is patch and test.
This patch depends on previous patch.
Updated•16 years ago
|
Attachment #317568 -
Flags: review?(sayrer) → review+
Assignee | ||
Updated•16 years ago
|
Attachment #321159 -
Flags: review?(sayrer)
Updated•16 years ago
|
Attachment #321159 -
Flags: review?(sayrer) → review+
Assignee | ||
Comment 2•16 years ago
|
||
fix checked in.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•16 years ago
|
||
Comment on attachment 317568 [details] [diff] [review]
Fix for problem plus unit test
correctness fix for microformats
Attachment #317568 -
Flags: approval1.9.0.3?
Assignee | ||
Comment 4•16 years ago
|
||
Comment on attachment 321159 [details] [diff] [review]
Handle email case as well
microformats correctness fix
Attachment #321159 -
Flags: approval1.9.0.3?
Comment 5•16 years ago
|
||
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 6•16 years ago
|
||
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-
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
•