CDATA Error (HTML Validator PRO v0.0302)

Discussion about any web related scripting languages like JavaScript, ASP, and PHP.

CDATA Error (HTML Validator PRO v0.0302)

Postby paulp575 » Sun Nov 22, 2009 8: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
paulp575
Rank II - Novice
Rank II - Novice
 
Posts: 42
Joined: Tue Aug 09, 2005 1:20 pm
Location: Spokane WA

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

Postby Albert Wiersch » Mon Nov 23, 2009 10: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
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to Scripting Languages

Who is online

Users browsing this forum: No registered users and 2 guests