From:  pear-qa@lists.php.net ("stijnhau@gmail.com")
Date:  13 Nov 2016 04:37:29 Hong Kong Time
Newsgroup:  news.php.net/php.pear.bugs
Subject:  

[PEAR-BUG] Req #17842 [Com]: Support for HTML5 form input methods

NNTP-Posting-Host:  null

Edit report at https://pear.php.net/bugs/bug.php?id=17842&edit=1

 ID:               17842
 Comment by:       stijnhau@gmail.com
 Reported By:      nick at oldnicksoftware dot co dot uk
 Summary:          Support for HTML5 form input methods
 Status:           Open
 Type:             Feature/Change Request
 Package:          HTML_QuickForm2
 Operating System: N/A
 Package Version:  0.4.0
 PHP Version:      5.3.3
 Roadmap Versions: 
 New Comment:

What is the status about this?
Will this be added?


Previous Comments:
------------------------------------------------------------------------

[2013-12-11 12:36:26] caplod

Any news on this?
It would be great to have url, email ... input types.

for example IOS devices show a different keyboard when focusing special
input types.

------------------------------------------------------------------------

[2013-06-23 22:58:53] lastorset

Do the maintainers have an opinion on the architecture of supporting
this? Just following the current pattern leads to a minor class
explosion, with HTML_QuickForm2_Element_InputSearch apparently equal in
status to HTML_QuickForm2_Element_InputText. On the other hand,
gathering them in one class could be nonintuitive, since "�匈nputText"
doesn't obviously cover the new types, and a new name (such as
"InputTextlike") would be hard to guess. I'm leaning toward the
class-explosion option myself, though maybe the new classes should
extend "�匈nputText".

(I'm asking because my project lead is demanding a minimum value on the
spinner I gave him by doing setType('number') on an
HTML_QuickForm_input. I'm considering patching HTML5 types in, after
upgrading to HTML_QuickForm2.)

------------------------------------------------------------------------

[2011-03-27 08:07:03] doconnor

class HTML_QuickForm2_Element_InputText extends 
HTML_QuickForm2_Element_Input
{
    protected $attributes = array('type' => 'text');
}

class HTML_QuickForm2_Element_InputEmail extends 
HTML_QuickForm2_Element_Input
{
    protected $attributes = array('type' => 'email');
}

... etc

------------------------------------------------------------------------

[2011-03-27 07:43:46] doconnor

+1 to this; browser support is documented @
http://diveintohtml5.org/forms.html

------------------------------------------------------------------------

[2011-03-27 07:43:06] doconnor

Request #5308

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=17842

-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=17842&edit=1