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)
        Core
          
        
        
      
        
    
        DOM: Core & HTML
          
        
        
      
        
    Tracking
()
        RESOLVED
        FIXED
        
    
  
        
            mozilla21
        
    
  
People
(Reporter: raphc, Assigned: mounir)
References
Details
(Keywords: doc-bug-filed)
Attachments
(1 file, 2 obsolete files)
| 24.09 KB,
          patch         | smaug
:
              
              review+ | Details | Diff | Splinter Review | 
      No description provided.
|   | Reporter | |
| Comment 1•13 years ago
           | ||
        Attachment #650606 -
        Flags: feedback?(mounir)
|   | Reporter | |
| Updated•13 years ago
           | 
        Attachment #650606 -
        Flags: feedback?(mounir) → review?(mounir)
| Assignee | ||
| Comment 2•13 years ago
           | ||
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?
| Assignee | ||
| Comment 3•13 years ago
           | ||
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-
| Assignee | ||
| Comment 4•13 years ago
           | ||
And also, could you update the b2g file that has the hack to detect 'time' input types?
|   | Reporter | |
| Comment 5•13 years ago
           | ||
        Attachment #650606 -
        Attachment is obsolete: true
        Attachment #653769 -
        Flags: review?(mounir)
| Assignee | ||
| Comment 6•13 years ago
           | ||
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-
| Assignee | ||
| Comment 7•12 years ago
           | ||
Assignee: raphael.catolino → mounir
        Attachment #653769 -
        Attachment is obsolete: true
Status: NEW → ASSIGNED
        Attachment #698727 -
        Flags: review?(bugs)
| Comment 8•12 years ago
           | ||
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+
| Assignee | ||
| Comment 9•12 years ago
           | ||
(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.
| Comment 10•12 years ago
           | ||
How does it work then on desktop builds?
| Assignee | ||
| Comment 11•12 years ago
           | ||
(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'>.
| Assignee | ||
| Comment 12•12 years ago
           | ||
Flags: in-testsuite+
Target Milestone: --- → mozilla21
|   | ||
| Comment 13•12 years ago
           | ||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Assignee | ||
| Updated•12 years ago
           | 
Keywords: dev-doc-needed
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•