-
Notifications
You must be signed in to change notification settings - Fork 2.1k
DefaultHtmlGenerator should attempt to properly format values for <input type="date">
and <input type="time">
#4102
Comments
@tuespetre the formatting is done at a relatively low level without knowledge of the chosen Use
|
Might be nice. I'm unsure about the cases where we generate |
@javiercn Please test the behavior out on a bunch of browsers to see what the user experience will be like. |
@danroth27 @dougbu Here is the behavior with RFC3339 enabled on latest browsers |
@danroth27 FYI the @javiercn which of the browsers show smart controls e.g. a calendar tool for some of the fields? Which fields for those browsers? |
@dougbu |
Hmm, does that mean we're using the wrong format for More generally, it definitely appears we wouldn't uglify much if we made The same is mostly true for the default templates
Finally should we remove the |
@dougbu I wouldn't think that adding type=text in extra HTML attributes is a common use case for But what's more important, I think that the default implementation works for most of our users. |
@dougbu @danroth27 @rynowak So, what do we want to do here? |
What I said was that we should ignore the corner case. However we need buy-in from the @Eilon's of the world.
I lean toward completely removing |
…values for `<input type="date">` and `<input type="time">`
…values for `<input type="date">` and `<input type="time">`
…values for `<input type="date">` and `<input type="time">`
When binding a
DateTime
model value to an<input type="date" />
element or an<input type="time">
element, one would expect the output to be a valid date string according to the HTML5 specification.Likewise, when binding a
DateTime
orTimeSpan
model value to an<input type="time" />
element, one would expect the output to be a valid time string according to the HTML5 specification.The text was updated successfully, but these errors were encountered: