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

On Sat, 7 Oct 2006, Egon Frerich wrote:

> Validating Error [63]: "character data is not allowed here"

I hope David's explanation cleared this up. But there is another
thing that I'd like to note, although it doesn't relate to validation 
proper except that it is an error that one might expect a validator 
to catch up but cannot be caught by it:

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

No problem with specifying the document content language that way - it's 
technically correct and recommended, and there's little we can do with the 
issue that very few programs _utilize_ the information there.

>>   <meta http-equiv="language" content="de" />

This, in turn, is incorrect, since there is no "language" header specified 
in the HTTP protocol. You could use "Content-Language" instead, as some 
authoring programs do, but this entire meta tag is probably quite useless.

A validator _cannot_ check that the http-equiv="" value is correct, 
because by the formalized HTML syntax, the value is CDATA, which means 
"anything goes".

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Saturday, 7 October 2006 12:12:48 UTC