Closed
Bug 420882
Opened 18 years ago
Closed 18 years ago
Validate geos better
Categories
(Toolkit Graveyard :: Microformats, defect)
Toolkit Graveyard
Microformats
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mkaply, Assigned: mkaply)
References
()
Details
Attachments
(1 file, 2 obsolete files)
6.78 KB,
patch
|
sayrer
:
review+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
a latitude or longitude is a very defined value, so the microformats code should do a better job of knowing what is "correct"
This patch adds validation in to the geo code.
In the tests for this, I needed a way to succeed when we threw on creation. Hopefully I did this correctly.
Attachment #307251 -
Flags: review?(sayrer)
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #308644 -
Flags: review?(sayrer)
Assignee | ||
Comment 2•18 years ago
|
||
I'm thinking too hard.
The best way to validate if a string is going to be a valid floating point after conversion is like this:
if (!isNaN(the_string)) {
/* It's a valid floating point */
}
new patch coming.
Assignee | ||
Comment 3•18 years ago
|
||
Attachment #307251 -
Attachment is obsolete: true
Attachment #308644 -
Attachment is obsolete: true
Attachment #308897 -
Flags: review?(sayrer)
Attachment #307251 -
Flags: review?(sayrer)
Attachment #308644 -
Flags: review?(sayrer)
Updated•18 years ago
|
Attachment #308897 -
Flags: review?(sayrer) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #308897 -
Flags: approval1.9?
![]() |
||
Updated•18 years ago
|
Attachment #308897 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 4•18 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•