Test 0256 / HTML4

Test 0256 is about the xml:lang attribute having precedence.  It contains:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="XHTML+RDFa 1.1" prefix="ex: http://example.org/">
  <head about="">
<title>Test 0256</title>
  <meta about="http://example.org/node" property="ex:property"
xml:lang="fr" lang="hu" content="chat" />
  </head>
  <body>
  <p></p>
  </body>
</html>

The @xml:lang attribute will never be parsed as an attribute in the 'xml'
namespace.  The HTML5 specification says that such a namespaced attribute
in non-XML documents have no effect [1].  I don't think this test should be
valid for HTML4.

Second, if this is really an HTML test, why is there a version attribute?
 This forces the processor to treat it as XHTML+RDFa 1.1 [2].

[1] http://www.w3.org/TR/html5/dom.html#the-lang-and-xml:lang-attributes
[2] http://www.w3.org/TR/rdfa-in-html/

-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Received on Wednesday, 22 May 2013 13:51:59 UTC