WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
34209
rangeOverflow/rangeUnderflow support for type=date
https://bugs.webkit.org/show_bug.cgi?id=34209
Summary
rangeOverflow/rangeUnderflow support for type=date
Kent Tamura
Reported
2010-01-27 02:44:53 PST
rangeOverflow/rangeUnderflow flags of ValidityState support for <input type=date>.
Attachments
Proposed patch
(18.96 KB, patch)
2010-01-27 02:55 PST
,
Kent Tamura
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2010-01-27 02:55:39 PST
Created
attachment 47513
[details]
Proposed patch
Darin Adler
Comment 2
2010-01-27 15:47:04 PST
Comment on
attachment 47513
[details]
Proposed patch
> + // Parses the src for the current type, and return the double > + // value for the parsing result if the parsing succeeds; Returns > + // defaultValue otherwise. This function can return NaN or > + // Infinity only if defaultValue is NaN or Infinity. > + double doubleValueFor(const String& src, double defaultValue) const;
If you think that the argument name is really needed, then please use the word "source" instead of the abbreviation "src". I think you can omit the argument name. Might be nicer if this function name made it clearer it was a string parser. I'm not sure "double value for <xxx>" implies parsing.
Kent Tamura
Comment 3
2010-01-27 23:33:30 PST
(In reply to
comment #2
)
> If you think that the argument name is really needed, then please use the word > "source" instead of the abbreviation "src". I think you can omit the argument > name.
I removed "src" and changed the wording.
> Might be nicer if this function name made it clearer it was a string parser. > I'm not sure "double value for <xxx>" implies parsing.
Renamed to parseToDouble(). Landed as
r53975
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug