Opened 13 years ago

Last modified 10 years ago

#7739 closed defect

lenient parsing of times not working — at Version 1

Reported by: Adam Peller Owned by: Douglas Hays
Priority: high Milestone: 1.3
Component: Dijit - Form Version: 1.2beta
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Adam Peller)

see dijit/tests/form/test_TimeTextBox.html, tested on FF3/Mac

  1. In the second box, change 5:45 p.m. to 5:45 pm or 5:45pm. An error indicator will not be shown, but the drop down choices disappear, and if you hover over the arrows you get exceptions like
this.timeMenu.childNodes[0] is undefined
[Break on this error] var index = this.timeMenu.childNodes[0].index;
../../.....Picker.js (line 339)
Index or size is negative or greater than the allowed amount" code: "1
[Break on this error] var index = this.timeMenu.childNodes[0].index;
  1. Enter a value using "AM" or "PM" in uppercase, and you get a warning icon (and still no drop down) even though the value is parsed and accepted when you change focus.

dojo.date.locale.parse should accept all of these forms, unless strict:true is set.

Change History (1)

comment:1 Changed 13 years ago by Adam Peller

Description: modified (diff)
Note: See TracTickets for help on using tickets.