tracker issue : CF-3306899

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

CFDOCUMENT does not reset content set by CFHTMLHEAD

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Claude Schnéegans / Claude Schnéegans (Claude)

Created: 08/09/2012

Components: Language

Versions: 9.0.1

Failure Type:

Found In Build/Fixed In Build: 9.0.1 / 287529

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win XP All

Vote Count: 0

Problem Description: When using <cfcontent type="text/html; charset=ISO-8859-1" RESET="yes">, everything is cleared except what was set by the cfhtmlhead tag.

Steps to Reproduce:
<head>This is in the head section</head>
<cfhtmlhead text = 'This was added by cfhtmlhead and sould not appear'>
<cfcontent type="text/html; charset=ISO-8859-1" RESET="yes">
<BR>All content should have been cleared.
</cfcontent>

Actual Result:
This was added by cfhtmlhead and sould not appear 
All content should have been cleared. 

Expected Result:
All content should have been cleared. 

Any Workarounds: Not found

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

Watson Bug ID:	3306899

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Claude
External Customer Email:  
External Test Config: My Hardware and Environment details: irrelevant

Attachments:

Comments:

I've noticed that the effect of CFHTMLHEAD is to find the <HEAD>...</HEAD> pair in the output at the end of the output creation and simply insert the text right before the </HEAD> tag. If no <HEAD> tag is found, the text will be added at the beging of the output buffer. You may use <HEAD>...</HEAD> after <CFHTMLHEAD, even as the last line in your template, and text added by <CFHTMLHEAD will still be inserted inside the <HEAD>...</HEAD> pair which proves that the action is performed at time the output buffer is sent and not at the moment <CFHTMLHEAD is executed. My understanding is that the RESET action is executed first, then the <CFHTMLHEAD action. This last operation shoud be canceled by the RESET and it is not.
Comment by External U.
18581 | August 09, 2012 10:08:55 AM GMT
Verified in CF Splendor latest build <head>This is in the head section</head> <cfhtmlhead text = 'This was added by cfhtmlhead and sould not appear'> <cfcontent type="text/html; charset=ISO-8859-1" RESET="yes"> <BR>All content should have been cleared. </cfcontent> RESET="yes" should clear the head text added through cfhtmlhead (Comment added from ex-user id:nawani)
Comment by Adobe D.
18582 | December 23, 2013 03:24:08 AM GMT