tracker issue : CF-4195407

select a category, or use search below
(searches all categories and all time range)
Title:

cfinput type="datefield" Generates Invalid HTML Code

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Richard Kennedy / Richard Kennedy (Richard Kennedy)

Created: 10/06/2016

Components: CFForm

Versions: 2016,11.0,10.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: CF11_Final / cf 11 -- 302221,

Priority/Frequency: Major / Some users will encounter

Locale/System: ALL / Win 2012 Server x64

Vote Count: 1

Listed in the version 2016.0.05.303689 Issues Fixed doc
Problem Description: 
cfinput type="datefield" Generates Invalid HTML Code

Steps to Reproduce:
	(1) Create & run a .cfm file containing the following code:
	<cfform action="action.cfm" method="post" name="test">
		<cfinput type="datefield" name="date">
	</cfform>
	(2) View source and locate input tag

Actual Result:
	<input name="date" id="date"  type="datefield" class="datefieldinput"  />

Expected Result:
	<input name="date" id="date"  type="text" class="datefieldinput"  />

Any Workarounds:
	None

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4195407

External Customer Info:
External Company:  
External Customer Name: Richard Kennedy
External Customer Email:  
External Test Config: My Hardware and Environment details:



Windows Server 2012 R2

Microsoft-IIS 8.5

ColdFusion Server Enterprise 11,0,09,299201

Attachments:

  1. May 26, 2017 00:00:00: Screen Shot 2017-05-25 at 8.31.56 PM.png

Comments:

input type="datefield" is not contained in any W3C HTML recommendation. See http://www.w3.org/TR/html-markup/input.html
Comment by External U.
1673 | October 06, 2016 10:18:19 AM GMT
We have replaced datefield(invalid) with text type as because setting type as ‘date’ as it will result in displaying browser’s calendar .Our component is custom one in which we create a normal text field and link it with our own calendar component. Rendering as type=’date’ will result in overriding our calendar with browser’s calendar. Therefore, input type will be of text type in the upcoming update .
Comment by Mukesh K.
1674 | May 09, 2017 12:12:35 PM GMT
This update breaks Chrome on windows and macs... Appears this was not tested. Browsers that support the HTML 5 input type="date" will override CFUI controls.
Vote by Alberto G.
1678 | May 26, 2017 01:39:38 AM GMT
So, it will fixed in 11.13?
Comment by Alberto G.
1675 | May 26, 2017 08:01:36 AM GMT
Hi Alberto, It will be fixed in the upcoming update . You can refer the bug CF-4198570 and can apply the patch provided in the same bug. Thanks, Mukesh
Comment by Mukesh K.
1676 | May 26, 2017 08:38:32 AM GMT
This is fixed as of CF11 update 13 and CF2016 update 5. See the technotes for either, which refer to this bug.
Comment by Charlie A.
1677 | October 27, 2017 10:01:23 PM GMT