Skip to content

input type month html5 conflict #1888

@ghost

Description

Created by kamui545, 11th Aug 2011. (originally Lighthouse ticket #1899):


What I did

<?php echo $this->Form->input('date', array('type' => 'month')); ?>

What happened

It returns a select with months instead of

<input type="month" />

CF: http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_form_month

I don't really need it, but HTML5 websites are increasing so I think you need to be aware of this issue before releasing Cake2.0 for an eventual fix.

Maybe can we rename methods like month(), day(), year(), etc... into selectMonth(), selectDay(), etc... to avoid this kind of issues ?

Edit: Same issue with

<?php echo $this->Form->input('date', array('type' => 'datetime')); ?>

http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_input_type_datetime

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions