input[time] renders with miliseconds in Firefox #16510
Description
I'm submitting a ...
- [x ] bug report
Current behavior:
Setting value of model to which input[type="time"]
directive is bounded to, to instance of Date
makes control display miliseconds in Firefox.
Expected / new behavior:
Description at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time documents only optional seconds but not miliseconds. Input field of type input[type="time"]
should not display miliseconds.
Minimal reproduction of the problem with instructions:
Plunker available at https://docs.angularjs.org/api/ng/input/input%5Btime%5D page.
AngularJS version: v1.6.10-build.25885+sha.c68b31c (current snapshot)
Browser: Firefox 59.0.1
Anything else:
This is similar to issue #10721 however not the same as now Firefox does support input[type="time"]
. Probably both problems stem from Angular not formatting model's value properly when calculating input's value in case of Firefox.