developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 13 years ago

#309 closed bug (fixed)

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

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

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 (1)

radix.diff (5.9 KB) - added by arnaudj 13 years ago.
Fix this bug in Firefox. Successfully tested in Firefox 2, Opera 9.10 and Kompozer 3.5.5

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by arnaudj

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

comment:1 Changed 13 years ago by laurentj

  • Version changed from trunk to 1.0 beta3

comment:2 Changed 13 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.