CDATA Error (HTML Validator PRO v0.0302)

Discussion about any web related scripting languages like JavaScript, ASP, and PHP.
Post Reply
paulp575
Rank III - Intermediate
Rank III - Intermediate
Posts: 52
Joined: Tue Aug 09, 2005 1:20 pm
Location: Spokane WA
Contact:

CDATA Error (HTML Validator PRO v0.0302)

Post by paulp575 » Sun Nov 22, 2009 7:36 pm

I am receiving the following error while checking a web page using javascript:
This document contains 1 CDATA section. Using CDATA sections is not recommended due to poor browser support (even some newer browsers fail to properly support it) and due to other complications. AI Internet Solutions recommends avoiding CDATA sections if possible or commenting them out (for example, using "//<![CDATA[" and "//]]>" in a "script" element).
I do have the "//<![CDATA[" and "//]]>" in the file.

it appears the validator is not reading the file properly???

Thanks,
paulp575

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3347
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: CDATA Error (HTML Validator PRO v0.0302)

Post by Albert Wiersch » Mon Nov 23, 2009 9:43 am

Hello,

That should be a warning (not error) message by default, which you should be able to disable or change to a regular message (blue color) if you'd like.

CSE HTML Validator will still generate the part about commenting CDATA sections out, even if it is already commented out. It's a general message if any CDATA sections are detected. It's not meant to say or imply that any CDATA sections are or are not commented out.
Image
Albert Wiersch

Post Reply