Actually it "sort of" works for this case because you're using the property rather than the attribute, but my comment above explains why this can be a problem (for legacy browsers). @blesh's date stuff is probably also going to be a problem if this change happens, due to modern desktop FF (among others) not supporting html5 date input types.