W3C home > Mailing lists > Public > www-validator@w3.org > April 2005

Re: Bug in validator

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 12 Apr 2005 15:22:16 +1000
Message-ID: <425B5B08.2020501@lachy.id.au>
To: Luca Mascaro <info@lucamascaro.info>
CC: www-validator@w3.org

Luca Mascaro wrote:
> I find a problem in HTML validator.
> 
> If we submit an HTML with a strange language code the validator dont'
> control this code.

I assume that means, it just doesn't issue an error?

> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="italiano"
> lang="italiano">

It's not a bug, it's a limitation with what can be validated with a DTD 
based validator.  The lang and xml:lang attributes are defined as CDATA, 
which means any ordinary character data.  The DTD does not contain a 
list of all known language and country codes, so the validator can't 
check you've used a valid one.

This just illustrates the difference between a "valid" document and a 
"conformant" document.
http://www.cs.tut.fi/~jkorpela/html/validation.html

-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Received on Tuesday, 12 April 2005 05:22:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT