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
Attachments:
Comments: