They fall back to text (much like "eahobn" inputs), so would be fine.Pony99CA wrote:As long as "legacy" browsers still work with the new field types, I don't see much downside to this.
[RFC] HTML5 input types for form fields
- 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
- 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
The what? Google couldn't even find "eahobn". I'm guessing that means the HTML 4.x standard INPUT tag types, but those are:callumacrae wrote:...(much like "eahobn" inputs)....
button
checkbox
file
hidden
image
password
radio
reset
submit
text
I could guess "Edit/Area/Hidden/Option/Button" but still don't get the "n".
Anyway, I presume that phpBB would keep the server validation for those fields to cope with those legacy browsers that didn't do client-side validation.
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.
-
- Registered User
- Posts: 523
- Joined: Sat Apr 22, 2006 10:29 pm
- Contact:
Re: [RFC] HTML5 input types for form fields
+1 (for HTML5 input types for form fields)
- 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
I'm glad it doesn't exist, that would have really screwed up my point!Pony99CA wrote:The what? Google couldn't even find "eahobn". I'm guessing that means the HTML 4.x standard INPUT tag types, but those are:callumacrae wrote:...(much like "eahobn" inputs)....
button
checkbox
file
hidden
image
password
radio
reset
submit
text
I could guess "Edit/Area/Hidden/Option/Button" but still don't get the "n".
Anyway, I presume that phpBB would keep the server validation for those fields to cope with those legacy browsers that didn't do client-side validation.
Steve
My point was that the HTML input was designed in such a way to be backwards compatible - if the input type is not recognised, it falls back to text.
http://jsfiddle.net/TNgnx/
Re: [RFC] HTML5 input types for form fields
Developing PR (with confirmation of Vinny) for this ticket, I found out that all includes/acp/acp_* files use build_cfg_template() from adm/index.php, not from includes/functions_acp.php. Can someone explain it to me? How I am going to treat that? Am I to add new input types into both locations of the function, or change all includes/acp/acp_* files not to use index.php, but functions_acp.php file?
EDIT: sorry, I combined directories of 3.0 and 3.1 and did not realise 3.1 does not have any function in adm/index.php. No problems from now.
EDIT: sorry, I combined directories of 3.0 and 3.1 and did not realise 3.1 does not have any function in adm/index.php. No problems from now.
- 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
Ah, got it. I thought that you were using "eahobn" as an abbreviation, but you were just using it as a non-existent input type.callumacrae wrote:I'm glad it doesn't exist, that would have really screwed up my point!
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.
Re: [RFC] HTML5 input types for form fields
Senky and me are working on this change. You can follow our progress in this branch.
We appreciate any feedback.
We appreciate any feedback.
-
- Registered User
- Posts: 523
- Joined: Sat Apr 22, 2006 10:29 pm
- Contact:
Re: [RFC] HTML5 input types for form fields
Vinny wrote:Senky and me are working on this change. You can follow our progress in this branch.
We appreciate any feedback.
Re: [RFC] HTML5 input types for form fields
FYI Most major browsers with the exception of IE9 and Safari currently support client side form validation... IE 10 also supports it...
Mods: Forum Icons Enhancement, Kiss Portal Engine
Links: Kiss Portal Engine (dev site) Stargate Portal (archive site) ...
Styles: Technika
Links: Kiss Portal Engine (dev site) Stargate Portal (archive site) ...
Styles: Technika
- 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
What do you mean by client-side form validation? It's possible to validate the contents of a form in any browser… so I'm assuming that that isn't what you meant.Michaelo wrote:FYI Most major browsers with the exception of IE9 and Safari currently support client side form validation... IE 10 also supports it...