<cfparam name="attributes.mytestvalue" default="0">
<cfdump var="#attributes#">
<!--- Attributes are there. --->
<cfdocumentSection>
<cfdocumentitem type="footer">
<cfdump var="#attributes#">
</cfdocumentitem type="footer">
</cfdocumentSection>
<!--- Attributes are not there. --->
Why does this happen? Is this a known bug?
According to \WEB-INF\cftags\META-INF\taglib.cftld, cfdocumentsection and cfdocumentitem are implemented as custom tags themselves and therefore possibly have their own attributes scope, thereby masking the values you’ve put into attributes scope.
You could try this:
Or perhaps this:
Also, although I don’t think it’s the problem here, you’ve got the type=”footer” attribute on the closing tag of cfdocumentItem, which isn’t necessary