#6253: FormHelper->button() and HtmlHelper->tags['button']
--------------------------+-------------------------------------------------
    Reporter:  verbal     |          Type:  Enhancement
      Status:  new        |      Priority:  Medium     
   Milestone:  1.2.x.x    |     Component:  Helpers    
     Version:  1.2 Final  |      Severity:  Normal     
    Keywords:             |   Php_version:  n/a        
Cake_version:             |  
--------------------------+-------------------------------------------------
 When I used:

 {{{
 echo $form->button('Submit', array('type' => 'submit'));
 }}}

 I expected:

 {{{
 <button type="submit">Submit</button>
 }}}

 but I received:

 {{{
 <input type="submit" value="Submit" />
 }}}

 I think HtmlHelper->tags['button'] with value '<input type="%s" %s/>', is
 misleading. It contains exact the same value as 'input'. It really should
 be something like this '<button type="%s" %s>%s</button>'.

 You can find more here:
 http://www.w3.org/TR/html4/interact/forms.html#h-17.5

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6253>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to