Re: Add Subject Here - meta tags

2011-06-16 1:23, Philip TAYLOR (Webmaster, Ret'd) kirjoitti:

> I would suspect that Karen is using the experimental "HTML" 5 mode
> of the Validator;

That is correct. In validation proper, or in "DTD based validation", as 
opposite to the mixed-technology heuristic checker called HTML5 mode of 
the validator, a validator does not restrict the values of a name 
attribute in <meta> to any specific set. The reason is that in DTDs, 
that attribute is declared as having type NAME, which means that any 
string that satisfies certain syntactic requirements is valid.

 > that does indeed dislike all of Karen's values,

That's because HTML5 defines a specific list of allowed values. The list 
is extensible, using the procedures described at
http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#other-metadata-names
(but I wouldn't bother).

> but even in HTML 4.01 mode "pagerank™" is unacceptable because
> of the "™" character.

It is invalid in HTML 4.01, because the syntax of names is limited so 
that no non-ASCII characters are allowed. But it would be conforming in 
HTML5, if the name were registered via the extension mechanism I cited. 
In HTML5, the value of the name attribute in <meta> is not limited in 
the basic syntax - it can be any string.

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

Received on Thursday, 16 June 2011 05:28:20 UTC