//<![CDATA[

For technical support for all editions of CSE HTML Validator. Includes bug reports.

//<![CDATA[

Postby morten » Sat Jul 23, 2005 4:33 am

I use an asp.net control from that emits various code. Part of the code is encapsulated in //<![CDATA[ blocks (see code below). I've stripped down the code to isolate the problem:

Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>x</title>
<link href="s.css" type="text/css" rel="stylesheet" media="screen">
</HEAD>
<body>
<form action="x.aspx">
<div id="t">
<script language="javascript" type="text/javascript">
//<![CDATA[
function x(){removed}
//]]>
</script>
</div>
</form>
</body>
</HTML>


When I run the validator on the code below I get the error message

The end validation tag name program generated an error while executing: 98081601: cannot find the end of a comment; looking for '*/'


If I remove
//<![CDATA[
function x(){removed}
//]]>


the document is valid (according htmlvalidator :wink: ).

How can I make htmlvalidator accept the above code segment as valid?
morten
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Fri Jul 22, 2005 8:28 am

Postby Albert Wiersch » Mon Jul 25, 2005 8:46 pm

Hello,

Thank you for the report. I've reproduced the problem using your sample HTML. It appears to be a bug in the validator. I will work on a fix for the next update. Sorry for the trouble.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Postby morten » Tue Jul 26, 2005 1:46 pm

Thanks. I'll wait for the next release :)
morten
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Fri Jul 22, 2005 8:28 am

Postby Albert Wiersch » Tue Aug 09, 2005 4:07 pm

Hello,

I've fixed this issue and it turned out to be a simple issue with the configuration file. You can get an updated configuration file here (for v7.00 versions only):
http://www.htmlvalidator.com/htmlval70cfg.zip

If you try it, then please let me know how it works.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Postby morten » Wed Aug 10, 2005 11:08 am

I replaced the cfg file, but it didn't solve the issue
morten
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Fri Jul 22, 2005 8:28 am

Postby Albert Wiersch » Wed Aug 10, 2005 11:53 am

morten wrote:I replaced the cfg file, but it didn't solve the issue


Did you reload CSE HTML Validator after replacing the file?

Another possible issue is that you may not be using the default config file. You may want to check Options->Validator Engine Options, General Tab to make sure that the default configuration file points to the fixed version of the config file. Please let me know if this helps.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Postby morten » Thu Aug 11, 2005 8:26 am

sorry, I had replaced the cfg file in the program files folder. No the <![CDATA passes - but with another error:

This document contains 1 CDATA section. CDATA sections should not be used in HTML, but may be used in XHTML (though it is not recommended due to poor browser support and due to other complications).


I wasn't aware that this was the case.

Thanks for your help!
morten
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Fri Jul 22, 2005 8:28 am

Postby Albert Wiersch » Thu Aug 11, 2005 9:37 am

morten wrote:sorry, I had replaced the cfg file in the program files folder. No the <![CDATA passes - but with another error


Hello,

That is the correct functionality and what it should have said in the first place so it looks like the problem has been fixed. :-)
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron