Skip to main content
Participant
December 17, 2009
Question

Javascript Coldfusion and validator W3C

  • December 17, 2009
  • 1 reply
  • 840 views

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 😃

    This topic has been closed for replies.

    1 reply

    Inspiring
    December 17, 2009

    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.

    Participant
    December 17, 2009

    Hello and thank you for your answer.

    Is there an alternative solution? Coldfusion 9 isn t free

    Thanks!

    Inspiring
    December 17, 2009

    Unfortunately the answer is "No"..

    http://www.terrenceryan.com/blog/post.cfm/more_xhtml_compliance_issues_in_coldfusion_8

    (Go through the "comments")