Copy link to clipboard
Copied
Hello,
I would like to know if there is a solution to make the Coldfusion's generated code valid against the W3C validator.
My coldfusion is generating this code :
<script type="text/javascript">
_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath="";
_cf_ajaxscriptsrc="/CFIDE/scripts/ajax";
_cf_jsonprefix='//';
_cf_clientid='17B936E2E7D6FC75BAC5A2FDE889CE65';
</script>
The part wich is the problem is the img tag. The better would be to nest it in a CDATA tag.
Does someone have a solution to solve this?
Thank you 😃
Copy link to clipboard
Copied
Hi,
I think you might be using ColdFusion 8 (or) 8.01.
The new version 'ColdFusion 9" has the ability to wrap these cf generated code in <![CDATA blocks.
Copy link to clipboard
Copied
Hello and thank you for your answer.
Is there an alternative solution? Coldfusion 9 isn t free
Thanks!
Copy link to clipboard
Copied
Unfortunately the answer is "No"..
http://www.terrenceryan.com/blog/post.cfm/more_xhtml_compliance_issues_in_coldfusion_8
(Go through the "comments")