Fixed
Details
Assignee
Michael OffnerMichael OffnerReporter
James MobergJames MobergPriority
NewLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
James Moberg
James MobergPriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 13 February 2021 at 17:44
Updated 8 November 2021 at 18:30
Resolved 8 November 2021 at 10:57
Problem Description:
cfhtmlhead( "hello world" ); //throws an error
Steps to Reproduce:
Use cfhtmlhead( "hello world" ); (Try it in TryCF.com or CFFiddle.org)
Actual Result:
CFERROR: ColdFusion was looking at the following text: )
Expected Result:
It should accept a positional parameter just like any other function.
Any Workarounds:
Used a named parameter or attributeCollection.
cfhtmlhead( text="abc" );
or
test = structnew();
test.text="123";
cfhtmlhead( attributeCollection=test );