Ticket #309 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

In jForm, javascript date validation doesn't work with Firefox

Reported by: arnaudj Assigned to:
Priority: normal Milestone: Jelix 1.0beta3.1
Component: jelix:forms Version: 1.0 beta3
Severity: normal Keywords:
Cc: Php version:
Review: Hosting Provider:
Documentation needed: Blocking:

Description

With Firefox, there is a bug in the verifyForm function : the following dates are erroneously said invalid :

  • every date with day 08 or 09
  • every date in August or September (months 08 or 09)

It seems to be because of the radix which isn't specified when using parseInt() : the values 08 and 09, beginning with zero and greater than 7, are understood as octal numbers. cf Mozilla Javascript 1.5 Reference.

The proposed patch has been successfully tested with Firefox 2, Opera 9.10 and Konqueror 3.5.5.

Attachments

radix.diff (5.9 kB) - added by arnaudj on 10/17/07 00:36:39.
Fix this bug in Firefox. Successfully tested in Firefox 2, Opera 9.10 and Kompozer 3.5.5

Change History

10/17/07 00:36:39 changed by arnaudj

  • attachment radix.diff added.

Fix this bug in Firefox. Successfully tested in Firefox 2, Opera 9.10 and Kompozer 3.5.5

10/17/07 10:48:16 changed by laurentj

  • version changed from trunk to 1.0 beta3.

10/18/07 23:28:37 changed by laurentj

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in the trunk and in the 1.0beta3.x branch. Thanks for the patch.

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed