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.

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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:45 UTC