Attributecollection feature doesn't work properly in cfinput tag.
Id specified is not used but name property instead.
Steps to reproduce bug:
1. Use code:
<cfform>
<cfset st = StructNew()>
<cfset st.name = "ab">
<cfset st.id = "a_b">
<cfinput attributecollection="#st#" />
<cfinput name="ac" id="a_c" />
</cfform>
Results:
Output:
<form name="test" id="test" action="/test/form.cfm" method="post"
onsubmit="return _CF_checktest(this)">
<input name="ab" id="ab" type="text" />
<input name="ac" type="text" id="a_c" />
</form>
Expected results:
<form name="test" id="test" action="/test/form.cfm" method="post"
onsubmit="return _CF_checktest(this)">
<input name="ab" id="a_b" type="text" />
<input name="ac" type="text" id="a_c" />
</form>
Is this a bug?
|