[Webkit-unassigned] [Bug 241103] Date() Constructor not working when using '/' in the Date

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 3 06:18:50 PDT 2022


nanomiratus at gmail.com changed:

           What    |Removed                     |Added
                 CC|                            |nanomiratus at gmail.com

--- Comment #3 from nanomiratus at gmail.com ---
To quote MDN:
"The ECMAScript specification states: If the String does not conform to the standard format the function may fall back to any implementation–specific heuristics or implementation–specific parsing algorithm. Unrecognizable strings or dates containing illegal element values in ISO formatted strings shall cause Date.parse() to return NaN."

This means that WebKit could theoretically support these date formats. In my opinion though, it shouldn't. Especially with Temporal getting closer and closer to Stage 4, developers of any browser shouldn't focus on implementing support for niche unofficial date formats for the Date constructor, which is the part in the ECMAScript specification with the most fundamental flaws and design mistakes.

Supporting stuff like "17/AUG/1996" is optional and not a MUST in the spec. Date is old and crappy. Don't do it.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220603/a432a291/attachment.htm>

More information about the webkit-unassigned mailing list