Closed Bug 777283 Opened 13 years ago Closed 12 years ago

add 'time' to the valid states of the input element's type attribute.

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: raphc, Assigned: mounir)

References

Details

(Keywords: doc-bug-filed)

Attachments

(1 file, 2 obsolete files)

No description provided.
Blocks: 781569
Attached patch patch (obsolete) — Splinter Review
Attachment #650606 - Flags: feedback?(mounir)
Attachment #650606 - Flags: feedback?(mounir) → review?(mounir)
Comment on attachment 650606 [details] [diff] [review] patch Review of attachment 650606 [details] [diff] [review]: ----------------------------------------------------------------- What about test_bug549475.html? And adding _TIME in ShouldBeInElements() (nsHTMLFormElement.cpp) Maybe you should make IsRangeUnderflow and IsRangeOverflow not working for time for the moment? ::: content/html/content/public/nsIFormControl.h @@ +234,5 @@ > aType == NS_FORM_INPUT_URL || > // TODO: this is temporary until bug 635240 is fixed. > aType == NS_FORM_INPUT_NUMBER || > aType == NS_FORM_INPUT_DATE || > + aType == NS_FORM_INPUT_TIME || Bug 773205 for _DATE and _TIME, right? Can you add a TODO comment?
Comment on attachment 650606 [details] [diff] [review] patch Review of attachment 650606 [details] [diff] [review]: ----------------------------------------------------------------- What about test_bug549475.html? And adding _TIME in ShouldBeInElements() (nsHTMLFormElement.cpp) Maybe you should make IsRangeUnderflow and IsRangeOverflow not working for time for the moment? ::: content/html/content/public/nsIFormControl.h @@ +234,5 @@ > aType == NS_FORM_INPUT_URL || > // TODO: this is temporary until bug 635240 is fixed. > aType == NS_FORM_INPUT_NUMBER || > aType == NS_FORM_INPUT_DATE || > + aType == NS_FORM_INPUT_TIME || Bug 773205 for _DATE and _TIME, right? Can you add a TODO comment?
Attachment #650606 - Flags: review?(mounir) → review-
And also, could you update the b2g file that has the hack to detect 'time' input types?
Attached patch patch (obsolete) — Splinter Review
Attachment #650606 - Attachment is obsolete: true
Attachment #653769 - Flags: review?(mounir)
Comment on attachment 653769 [details] [diff] [review] patch Review of attachment 653769 [details] [diff] [review]: ----------------------------------------------------------------- min/max, rangeunderflow and rangeoverflow should be updated too. You also forgot to update test_bug549475.html. Seems like this patch and the previous one are the same. Did you attach the correct one?
Attachment #653769 - Flags: review?(mounir) → review-
Attached patch PatchSplinter Review
Assignee: raphael.catolino → mounir
Attachment #653769 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #698727 - Flags: review?(bugs)
Comment on attachment 698727 [details] [diff] [review] Patch >- // TODO: this is temporary until bug 773205 is fixed. >+ // TODO: those are temporary until bug 773205 is fixed. these And more tests and the rest of the implementation are coming in the other bugs, right?
Attachment #698727 - Flags: review?(bugs) → review+
(In reply to Olli Pettay [:smaug] from comment #8) > And more tests and the rest of the implementation are coming in the other > bugs, right? Yes. Actually, I will land this so it can be used by mobile platforms (Android and FxOS). Which means there will be no in-page UI but the system UI is going to be used.
How does it work then on desktop builds?
(In reply to Olli Pettay [:smaug] from comment #10) > How does it work then on desktop builds? <input type='time'> will be ignored. It is behind a pref that is enabled by default on Android and FxOS. This is already the case with <input type='number'> and <input type='date'>.
Flags: in-testsuite+
Target Milestone: --- → mozilla21
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Keywords: dev-doc-needed
See bug 866430 for documentation.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: