Everyone knows that the phpBB 3.1 uses HTML5, thinking about it why not use the new features? The discussion about the new features started here.
Proposal
Add the new input types for forms. With the new HTML5 input types, you can have more control over each field, well as validating email and url fields.
Pros
The browser will automatically take care to validate the fields.
Cons
Browsers support . Some browser doesn't support some types. But the current error box system will remain.
Ticket: http://tracker.phpbb.com/browse/PHPBB3-11010
PR: https://github.com/phpbb/phpbb3/pull/1000/
[RFC] HTML5 input types for form fields
Re: [RFC] HTML5 input types for form fields
In this case only is Internet explorer, Firefox, Opera, Safari and Chrome already support the features of HTML5Vinny wrote:Cons
Browsers support . Some browser doesn't support some types.
+1Vinny wrote:Proposal
Add the new input types for forms. With the new HTML5 input types, you can have more control over each field, well as validating email and url fields.
*Imagine a signature super spectacular.*
Re: [RFC] HTML5 input types for form fields
nextgen wrote:In this case only is Internet explorer, Firefox, Opera, Safari and Chrome already support the features of HTML5
Also, look this: http://www.w3schools.com/html5/html5_fo ... _types.aspUnknown Bliss wrote:FYI: http://fmbip.com/ tells you about your current browser compatibility.
Re: [RFC] HTML5 input types for form fields
Seems straight forward, and even if some browser doesn't support one of them yet, worst case it'll look like it does now. So I think all we need here is for someone to create a ticket and someone who wants to implement it who will send a pull request.
Re: [RFC] HTML5 input types for form fields
Yes, good point.naderman wrote:Seems straight forward, and even if some browser doesn't support one of them yet, worst case it'll look like it does now.
Ticket = Donenaderman wrote:So I think all we need here is for someone to create a ticket and someone who wants to implement it who will send a pull request.
PR = I'm working in the pr.
Re: [RFC] HTML5 input types for form fields
I was reviewing and testing the new types and I think that just
Opinions?
email
and url
should be used.Opinions?
- A_Jelly_Doughnut
- Registered User
- Posts: 1780
- Joined: Wed Jun 04, 2003 4:23 pm
Re: [RFC] HTML5 input types for form fields
I could certainly see scenarios where date, datetime, and tel[ephone] would be useful, although only date is currently implemented as a CPF type.
A_Jelly_Doughnut
Re: [RFC] HTML5 input types for form fields
Maybe
number
and search
too.- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] HTML5 input types for form fields
The search input annoyed me because it wasn't themeable. I couldn't get rid if the overly-rounded corners.
- Pony99CA
- Registered User
- Posts: 986
- Joined: Sun Feb 08, 2009 2:35 am
- Location: Hollister, CA
- Contact:
Re: [RFC] HTML5 input types for form fields
As long as "legacy" browsers still work with the new field types, I don't see much downside to this. It might also make my New Custom Profile Field Types RFC easier (in the future; for now, validation will still be required anyway).naderman wrote:Seems straight forward, and even if some browser doesn't support one of them yet, worst case it'll look like it does now.
CPF? UPDATE: Never mind -- Custom Profile Field.A_Jelly_Doughnut wrote:I could certainly see scenarios where date, datetime, and tel[ephone] would be useful, although only date is currently implemented as a CPF type.
The Month type could be used for birth dates and the Color type in the ACP (for example, the Group colour setting).
Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.