[webkit-reviews] review requested: [Bug 13472] Misparsing date in javascript leads to year value of -1 : [Attachment 16315] First attempt

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 18 12:09:46 PDT 2007


Rob Buis <rwlbuis at gmail.com> has asked	for review:
Bug 13472: Misparsing date in javascript leads to year value of -1
http://bugs.webkit.org/show_bug.cgi?id=13472

Attachment 16315: First attempt
http://bugs.webkit.org/attachment.cgi?id=16315&action=edit

------- Additional Comments from Rob Buis <rwlbuis at gmail.com>
This patch should fix the problem. However there are some things I am wondering
about:

- mozilla is very liberal with ',', basically making it act as whitespace and
things like this work:
javascript:void(alert(new Date( '24 May,,,,,,2007 15:35:00' )))
I wonder if we want to go that way?

- not sure where to add/change a testcase for this?

Cheers,

Rob.



More information about the webkit-reviews mailing list