Forum Moderators: open
Released version 0.7.0, including improvements in User Interface and feedback mechanisms, support for installation on Windows platform, better support for both W3C and non-W3C document types, usage of templates for validation results, and a number of bug fixes.
After further investigation, it appears that this is an issue with ArticleLive rather than the validator, although it does look like the validator is more strict than it was in the last version. I had modified ArticleLive so it would produce valid XHTML 1.0 Transitional. From what I can tell, ArticleLive is stripping out some slashes in the doctype. My source code contains this, which is correct:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
But after the code is processed, I get this (note the single slashes in the top line):
<!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The validator didn't have a problem with that previously, but does now.
The error reported is:
"Contradictory Parse Modes Detected!
The MIME Media Type() indicated parse mode should be SGML, but the DOCTYPE Declaration indicates XML mode. Using SGML mode based on the Content-Type header"
It takes exception to xhtml's back slash in the meta statements ie. />
I had been using the following header:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
<head>
<title>XXXXXXXX</title>
<meta name="description" content="XXXXXXXX" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="StepOne" />
If I strip out all the meta statements, it's happy.
Granted most of the meta statements perhaps don't serve much purpose now.
Neither Tidy or CSE HTML validator Lite report errors.
What is the MIME Media Type() it's talking about and what should I do, any ideas?
The MIME media type is the type of document: usually
text/html for most HTML documents, but it can also be application/xhtml+xml, application/xml or even text/xml.
I had been using the W3C validation option within Bradsoft's TopStyle HTML/CSS editor and got the errors mentioned in my last post.
I've just used W3C's Validate by URL service on a page that had previously produced errors - it validated. So perhaps it's got more to do with TopStyle than W3C, I don't know.
I use the standard .html file extension for my pages. As others have already reported, W3C validation at the moment is very, very slow.
It's difficult to say if this is a bug with the validator or not - if it is sniffing doctypes to determine MIME type, then yes it could be considered a bug - however it is more likely to be a confusion due to the specific way TopStyle is sending the page.