Bug 52387 - REGRESSION: "Invalid date" message from Prometheus apartment search website
Summary: REGRESSION: "Invalid date" message from Prometheus apartment search website
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Michael Saboff
URL: http://property.onesite.realpage.com/...
Keywords: Regression
Depends on:
Blocks:
 
Reported: 2011-01-13 11:59 PST by Michael Saboff
Modified: 2011-01-14 08:03 PST (History)
1 user (show)

See Also:


Attachments
Patch to use indirect jump if available for DataLabelPtr linkage. (10.62 KB, patch)
2011-01-13 21:32 PST, Michael Saboff
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2011-01-13 11:59:22 PST
* STEPS TO REPRODUCE
1. Load <http://property.onesite.realpage.com/ol2/(S(nd33kmi3bnaaw23olth4ci45))/sites/prometheus/default.aspx>.
2. Change the "Apartment type" dropdown to "1 Bedroom Large"
3. Press "Search".

* RESULTS
A message saying "Invalid date" is displayed next to the "Move in date" field.

* REGRESSION
This works prior to r73307.  I assume based on the nature of the change in r73307 that the website is using a regexp of some sort for date validation.

The following JavaScript snippet is sufficient to reproduce the failure:

(new RegExp("^([1][0-2]|[0]\\d|\\d)(\\/|\\.|\\-)([0-2]\\d|[3][0-1]|\\d)((\\/|\\.|\\-)(\\d\\d|\\d\\d\\d\\d)|)$")).exec("1/9/2011")
Comment 1 Michael Saboff 2011-01-13 21:32:04 PST
Created attachment 78887 [details]
Patch to use indirect jump if available for DataLabelPtr linkage.
Comment 2 Oliver Hunt 2011-01-13 21:50:40 PST
r=me
Comment 3 Michael Saboff 2011-01-14 08:03:21 PST
Committed r75796: <http://trac.webkit.org/changeset/75796>