CDATA Error (HTML Validator PRO v0.0302)

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
paulp575
Rank IV - Intermediate
Posts: 170
Joined: Tue Aug 09, 2005 1:20 pm
Location: Spokane WA
Contact:

CDATA Error (HTML Validator PRO v0.0302)

Post by paulp575 »

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
Posts: 3783
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 »

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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply