Closed Bug 829210 Opened 12 years ago Closed 12 years ago

Simplify the internal GetValueAsDate()

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: mounir, Unassigned)

References

Details

Attachments

(1 file)

Attached patch Patch (deleted) — Splinter Review
It was as over complicated as IsValidTime(). My bad :( Tests are passing.
Attachment #700605 - Flags: review?(bugs)
OS: Linux → All
Hardware: x86_64 → All
Comment on attachment 700605 [details] [diff] [review] Patch >+ // Now, we know where is the next '-' and what should be the size of the >+ // string. >+ if (aValue[endOfYearOffset+3] != '-' || space before and after + >+ if (!DigitSubStringToNumber(aValue, endOfYearOffset+1, 2, aMonth) || space before and after + >+ return DigitSubStringToNumber(aValue, endOfYearOffset+4, 2, aDay) && space before and after +
Attachment #700605 - Flags: review?(bugs) → review+
Status: NEW → ASSIGNED
Flags: in-testsuite+
Target Milestone: --- → mozilla21
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: