W3C home > Mailing lists > Public > www-validator@w3.org > October 2006

Re: [VE][63] Wrong character in meta element ?

From: David Dorward <david@dorward.me.uk>
Date: Sat, 7 Oct 2006 11:03:55 +0100
To: Egon Frerich <e.frerich@nord-com.net>
Cc: www-validator@w3.org
Message-ID: <20061007100355.GA10669@us-lot.org>

On Sat, Oct 07, 2006 at 11:21:49AM +0200, Egon Frerich wrote:
> > <?xml version="1.0" encoding="UTF-8"?>

This shouldn't be in XHTML files served as text/html

> > <!DOCTYPE html 
> >     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//DE" 

This is not the public identifier for XHTML 1.0 Strict (the EN does
not describe the language of the _document_, but of the DTD).

> >   <meta http-equiv="content-type" content="text/xml; charset=UTF-8" />
> >   <meta http-equiv="language" content="de" />
> >   <meta name="copyright" content="Egon Frerich" />
> 
> The validator tells me that ">" in the first meta element is a wrong
> character.

Since you are serving an unrecognised document type as text/html, the
validator doesn't parse it as XML, so <foo /> is treated by HTML rules
not XML rules.

http://www.cs.tut.fi/~jkorpela/html/empty.html

-- 
David Dorward                                      http://dorward.me.uk
Received on Saturday, 7 October 2006 10:04:01 GMT

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