Realmac Software

Welcome guest, please Login or Register

   

W3 HTML validation

Avatar
Rank
Rank
Rank

Total Posts: 67

Joined Jun 2008

PM

 

I ran a check to see if my site was HTML valid through the W3 validator and it says this

Warning Mismatch between Public and System identifiers in the DOCTYPE declaration

This document uses an inconsistent DOCTYPE declaration. The System Identifier http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd declares the XHTML 1.0 Transitional document type, but the associated Public Identifier -//W3C//DTD XHTML 1.0f Transitional//EN does not match this document type.

The recommended Public Identifier for http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd is -//W3C//DTD XHTML 1.0 Transitional//EN.

1. Should I be worried about this?
2. What effect does this have on the site?
3. Is this Rapidweavers doing?
4. How is it easily fixed?

TIA

Avatar
Rank
Rank
Rank
Rank
Rank
Rank

Total Posts: 584

Joined Feb 2006

PM

 

The problem is in the part of the identifier that reads:

XHTML 1.0f

That ‘f’ should not be there.

I’m pretty sure that RW didn’t put it there and I took a look at some other themes made with BlocksBox and they were fine, so I don’t know where it came from.

You might take a look at your theme’s contents and see if it’s in the index.html theme template.

Phil

Avatar
Rank
Rank
Rank

Total Posts: 67

Joined Jun 2008

PM

 
Phil Warrender - 23 January 2009 05:16 PM

You might take a look at your theme’s contents and see if it’s in the index.html theme template.

Phil

Heres the contents of my BlocksBox index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"

Ive got no idea where its coming from as I havent set the DOCTYPE manually.

Avatar
Rank
Rank
Rank
Rank
Rank
Rank

Total Posts: 584

Joined Feb 2006

PM

 

If you have page output set to ‘Tidied’ or ‘Optimized’ then RW will change the doctype if necessary.
I use ‘Tidy’ on all my pages but I’ve never seen it set the doctype as 1.0f

Wish I had an answer.

Phil

Avatar
Rank
Rank
Rank
Rank
Rank
Rank

Total Posts: 584

Joined Feb 2006

PM

 

I would add that the reason your doctype was changed to transitional is because of the ‘align’ and ‘border’ attributes in your table. These will not validate ‘strict’.

You also have an ‘alt’ attribute in a link near the footer. Change that to a ‘title’ attribute like on your other links and get rid of that error.

If you do that then you will validate ‘transitional’ with only the warning about the doctype.


Phil