2 XHTML 1.0 Errors

Found a bug? Tell us!!
Post Reply
CadEx
Regular
Posts: 12
Joined: Fri Oct 26, 2007 9:57 pm

2 XHTML 1.0 Errors

Post 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.
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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.
CadEx
Regular
Posts: 12
Joined: Fri Oct 26, 2007 9:57 pm

Post 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.
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

True enough, and thanks for bringing it to our attention.
CadEx
Regular
Posts: 12
Joined: Fri Oct 26, 2007 9:57 pm

Post by CadEx »

You're welcome.

You might find this funny:
http://validator.w3.org/check?uri=www.i ... ne&group=0
2915 errors. :D
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post 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.
Post Reply