PDA

View Full Version : W3C Validation Problems


UED77
12-07-2004, 9:26 PM
I'm very frustrated by W3C's HTML Validator (http://validator.w3.org/) currently.
Just two days ago, I validated my homepage's main page, and it passed as valid XHTML 1.1. A day later (yesterday), it didn't anymore, and I basically spent all yesterday trying to figure out what was up with it...

Anyways, my current problems are the following:

I have a primitive website, and its address is http://uedworld.webhop.net/. It's a redirect, but it correctly recognizes that and acts accordingly.

The second-tier page, christened "main.html (http://uedworld.webhop.net/main.html)", validates as HTML 4.01 Strict. The first-tier page "index.html (http://uedworld.webhop.net/index.html)" has the same DTD declaration, different content of course, but same structure, and it still doesn't validate.
If I let the validator determine by the DTD declaration what the format of the page is, it gives me an error saying "Line 1 Column 0: end of document in prolog".
When I select "HTML 4.01 Strict" as document type, it gives me a warning saying I used a manual DTD override, as well as giving me the error message

Line 1, column 50: no document element
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">

(error at underline)

And I just can't discern what's wrong with it! Can somebody proficient in these matters please help me?

Thank you,

UED77

Neo
12-07-2004, 9:48 PM
I dont know, try removing the space before the ending ">" for the doctype.

The validator is just all fuxored up I think.

-Neo

WeekendLazyness
12-07-2004, 9:59 PM
That's not the full DTD. It is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

UED77
12-07-2004, 10:06 PM
Thanks, WL, but I do have the full DTD in the page source:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


In fact, I was so frustrated with the validator not recognizing it that I copy-pasted the DTD right out of the specs into my source, the same one for both "main" and "index". "main" validates, "index" doesn't.

I tried it on two lines, single line, without spaces between the two parts, with tab, basically everything and it still doesn't accept it.

UED77