tracker issue : CF-3146932

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


| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): David Smith / David Smith (david_faber)

Created: 03/23/2012

Components: AJAX

Versions: 9.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: 9.0 /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win 2008 Server

Vote Count: 0

Problem Description:The <cfajaxproxy> tag does not recognize attributes of the <head> tag, or even a space before the closing >

Steps to Reproduce:Create a ColdFusion page with a <cfajaxproxy> tag followed by a <head> tag with any legitimate attribute (such as profile in HTML 4.01 or id in HTML5). The JavaScript code inserted by <cfajaxproxy> will not be inserted in the correct place.

Actual Result:The JavaScript code will be inserted before the closing > of the opening <head> tag. For example, if you have <head profile="">, the JS code will be inserted immediately after "<head " but before the "profile" attribute. It appears that ColdFusion is searching for the first occurrence of "<head", advancing one character (no matter what that character might be!) and then inserting the JS code.

Expected Result:The JavaScript code should be inserted after the opening <head> tag, even if there are attributes.

Any Workarounds:Using an additional <head> tag before the problematic one (not valid HTML, but seems to work in browsers), or "fixing" problematic <head> tags either manually or by regex in Application.cfc.

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

Watson Bug ID:	3146932

External Customer Info:
External Company:  
External Customer Name: mdlinx_dsmith
External Customer Email:  
External Test Config: My Hardware and Environment details:IIS 6.0, ColdFusion 9, MS Windows



Please see the following link for a description of this problem and workarounds: I reproduced the error in ColdFusion 9, but it happens in ColdFusion 8 as well. The error will occur as frequently as when users utilize the <head> tag with attributes.
Comment by External U.
19999 | March 23, 2012 09:36:04 AM GMT
Can you please verify this in 901.? i was able to replicate in 9 but it seems to be fixed for me in 901 and 10 (Comment added from ex-user id:vnigam)
Comment by Adobe D.
20000 | June 18, 2012 03:46:56 AM GMT
as noted by Viny, this seems fixed in the later versions of CF. closing this. mdlinx_dsmith, If you can still observe this issue, please feel free to reopen this.
Comment by Piyush K.
20001 | December 03, 2014 02:39:22 AM GMT