BETA 2 and Custom DTD additions

For topics about current BETA or future releases, including feature requests.

BETA 2 and Custom DTD additions

Postby thacker abcdefg » Thu Feb 19, 2009 12:58 am

Albert--

The addition of any custom DTD to the Beta 2 will throw an error when the validator is launched.

Code: Select all
An error occurred running the onConfigLoad() function for the configuration loaded:

98012903: misplaced or missing closing parenthesis where token "If' found for setValueString() at location 12534(...ouem_msgtextappend='If you want to ignor...)


At least, I believe that is what is throwing this error message.

Any questions or if you need additional testing, let me know.

Thanks.
thacker abcdefg
Rank I - Novice
Rank I - Novice
 
Posts: 16
Joined: Tue Jul 31, 2007 6:34 pm

Postby Albert Wiersch » Thu Feb 19, 2009 11:02 am

I'm not sure I understand. Did you edit the onConfigLoad() function or the configuration in any way?

If so, then could you paste the onConfigLoad() function in a reply or send your edited configuration file and any needed files to reproduce the problem to me at support at htmlvalidator dot com?
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

Postby thacker abcdefg » Thu Feb 19, 2009 3:52 pm

Albert--

The configuration file is edited so that a custom DTD is recognized.

Code: Select all
setValueString(3,'!DOCTYPE html PUBLIC "-//Domain//DTD XHTML 1.1 Enhanced//EN"');


The error was being thrown because of improper syntax. The syntax error had to be present so that the validator would recognize the custom DTD.

With the above function where the syntax is correct, at least no syntax error is appearing during launch of the application, validator does not recognize the custom DTD.

Thanks.
thacker abcdefg
Rank I - Novice
Rank I - Novice
 
Posts: 16
Joined: Tue Jul 31, 2007 6:34 pm

Postby Albert Wiersch » Thu Feb 19, 2009 4:18 pm

Hello,

I tested this and did not have any problem.

Did you reload the config file? It has to be reloaded for the nnConfigLoad() function to run again.

This document worked for me (no issues with the DOCTYPE):

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//Domain//DTD XHTML 1.1 Enhanced//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <title></title>
   <meta name="generator" content="CSE HTML Validator Professional (http://www.htmlvalidator.com/)" />
</head>

<body>

</body>
</html>
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

Postby thacker abcdefg » Thu Feb 19, 2009 4:38 pm

Albert--

I am using the function as posted and validator does not recognize the DTD.

Am also picking up some quirky display rendering in content that has explicitly set IE8 to render in standards mode via the meta equiv tag. When the meta tag is removed, the quirkiness is not present.

In real time tests within IE8 and IE7, with or without the meta tag specification, content functions as it should. That includes tests between standards and compatibility modes within IE8 RC1.

Honestly, dependence upon any version of IE for any type of validation application is a little strange to me.

What causes these issues, I have no idea.
thacker abcdefg
Rank I - Novice
Rank I - Novice
 
Posts: 16
Joined: Tue Jul 31, 2007 6:34 pm

Postby Albert Wiersch » Thu Feb 19, 2009 4:44 pm

thacker abcdefg wrote:Albert--

I am using the function as posted and validator does not recognize the DTD.


Please send me your config file and a sample document that reproduces the problem (to support at htmlvalidator dot com) and I'll take a look.
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 CSE BETA Talk

Who is online

Users browsing this forum: No registered users and 2 guests