- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Thu, 16 Feb 2006 16:49:37 +0200 (EET)
- To: ian <ian@ph-creative.com>
- cc: www-validator@w3.org
On Thu, 16 Feb 2006, ian wrote: > Validating http://www.diversitydividend.com/news.asp > Error [64]: "document type does not allow element X here" > > [ The News.asp page displays text that contains invalid characters. > The code that displays the characters is a call to a class and the text > is stored in the database. The text is uploaded by external > administrators. Not sure if it is to do with the DOCTYPE or not. The DOCTYPE declaration specifies a Frameset document type, which shall be used for framesets only. Change it to <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> first, and then perhaps proceed to HTML 4.01 Strict. The error messages about "non SGML characters" are caused by the presence of octets (bytes) that do not correspond to any characters according to the declared character encoding, ISO-8859-1. Changing the encoding to windows-1252 fixes this. In this case, it suffices (as a quick fix at least) to change the encoding as declared in a <meta> tag. Then there are two error messages left, related to errors in table structure (closing tags with no matching start tags) at lines 180 and 181. -- Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Thursday, 16 February 2006 14:49:51 UTC