Page 1 of 1

2 XHTML 1.0 Errors

Posted: Fri Oct 26, 2007 10:00 pm
by CadEx
1.:

Line 4, Column 1: Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml .

<html>

Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

This is so simple to correct.

2. :
If you haven't created categories, the category list is empty, which means an empty <ul>-Tag. This is an error.

Posted: Fri Oct 26, 2007 11:14 pm
by carl_galloway
which template are you using, the first error is a template error, whereas the second is a programming error. If you can give us more info that would be grand.

Posted: Sat Oct 27, 2007 7:25 pm
by CadEx
Template is "Serendipity v2.3". Yeah, it's old, but should of course have been adjusted because it's still distributed with serendipity.

Posted: Sat Oct 27, 2007 8:06 pm
by carl_galloway
True enough, and thanks for bringing it to our attention.

Posted: Sun Oct 28, 2007 12:15 am
by CadEx
You're welcome.

You might find this funny:
http://validator.w3.org/check?uri=www.i ... ne&group=0
2915 errors. :D

Posted: Sun Oct 28, 2007 1:49 am
by chickens
Arguably the most viewed page on the internet has 30 errors, and its so simple...

http://validator.w3.org/check?uri=http% ... google.com

The w3 standards are just ideals, almost no large site uses them. I do think that people should strive for them, but it almost never happens on any large closed source project.