tracker issue : CF-3849712

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

[ANeff] Bug for: <cfform> creates form field "id" as float in one scenario

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/NotWorthEffort

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 11/10/2014

Components: CFForm

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Minor / Very few users will encounter

Locale/System: English / Win All

Vote Count: 0

In this scenario, "id" is integer (good):

code: <cfform><cftextarea name="#1+1#" value="#1+1#" /></cfform>
output: <textarea name="2" id="2">2</textarea>

In this scenario, "id" is float (bad):
code: <cfform><cftextarea name="#1+1#" id="#1+1#" value="#1+1#" /></cfform>
output: <textarea name="2" id="2.0">2</textarea>

Same issue w/ other input types (ex: <cfinput id="#1+1#" has same issue).

Related ticket: 3724983

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

Watson Bug ID:	3849712

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:



It does not work because 1) 'id' is not a defined field of this tag. It is just passed to its respective HTML field. 2) ColdFusion keeps all the numbers as float. Fixing it only for ID is not the solution as the same would happen for any superfluous attribute for any tag. Moreover, using an expression in the HTML "id" field is a very edge case and I don't think that is practical at all.
Comment by Rupesh K.
10190 | November 20, 2014 09:40:42 AM GMT
Hi Rupesh, You're right, very edge case :) And thank you for the explanation. It's just something I tried when looking into #CF-3724983, so figured I should let Adobe know. Thanks!, -Aaron
Comment by External U.
10191 | November 26, 2014 07:28:10 PM GMT