Bug 75671 - Date parsing is too restrictive.
Summary: Date parsing is too restrictive.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 16:40 PST by Gavin Barraclough
Modified: 2012-01-05 17:09 PST (History)
0 users

See Also:


Attachments
Fix (21.34 KB, patch)
2012-01-05 16:57 PST, Gavin Barraclough
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Barraclough 2012-01-05 16:40:25 PST
ES5 date parsing currently requires are fields to be present, which does not match the spec (ES5.1 15.9.1.15).

The spec allow a date to be date only, or date + time.

The date portion on the should match: (pseudocode!:)
    [(+|-)YY]YYYY[-MM[-DD]]
The time portion should match:
    THH:mm[:ss[.sss]][Z|(+|-)HH:mm]
Comment 1 Gavin Barraclough 2012-01-05 16:57:00 PST
Created attachment 121369 [details]
Fix
Comment 2 Oliver Hunt 2012-01-05 17:00:38 PST
Comment on attachment 121369 [details]
Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=121369&action=review

run perf tests

> Source/JavaScriptCore/ChangeLog:8
> +        ES5 date parsing currently requires are fields to be present, which does not match the spec (ES5.1 15.9.1.15).

all
Comment 3 Gavin Barraclough 2012-01-05 17:09:39 PST
Fixed in r104251