W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > March 2012

Re: HTML5 test cases and the lang attributes

From: Gregg Kellogg <gregg@kellogg-assoc.com>
Date: Fri, 9 Mar 2012 11:43:38 -0500
To: Ivan Herman <ivan@w3.org>
CC: Manu Sporny <msporny@digitalbazaar.com>, W3C RDFWA WG <public-rdfa-wg@w3.org>
Message-ID: <2B60A7B5-986B-4D9E-ACB6-28CC3EB66C96@kellogg-assoc.com>
On Mar 9, 2012, at 8:53 AM, Ivan Herman wrote:

> 
> On Mar 9, 2012, at 16:43 , Ivan Herman wrote:
> 
>> This may be a specification error, but in the HTML5+RDFa document, not in the CR-to-be documents:-)
>> 
>> Tests #12 tests the language setting (the same issue is also valid for tests #13 and #172):
> 
> And also test #108
> 
> Ivan
> 
>> 
>> <!DOCTYPE html>
>> <html 
>> prefix="ex: http://example.org/">
>> <head about="">
>> 	<title>Test 0012</title>
>> 	<meta about="http://example.org/node" property="ex:property" xml:lang="fr" content="chat" />
>> </head>
>> <body>
>> 	<p></p>
>> </body>
>> </html>
>> 
>> expecting
>> 
>> ASK WHERE {
>> 	<http://example.org/node> <http://example.org/property> "chat"@fr .
>> }

That's xmlns:ex="http://example.org/", at least when I open the document.

>> The HTML5+RDFa document says:
>> 
>> "The current language can be set using either the @lang or @xml:lang attributes."
>> 
>> However, the HTML5 document says:
>> 
>> [[[
>> Authors must not use the lang attribute in the XML namespace on HTML elements in HTML documents. To ease migration to and from XHTML, authors may specify an attribute in no namespace with no prefix and with the literal localname "xml:lang" on HTML elements in HTML documents, but such attributes must only be specified if a lang attribute in no namespace is also specified, and both attributes must have the same value when compared in an ASCII case-insensitive manner.
>> ]]]
>> 
>> What this tells me is:
>> 
>> - the test is actually wrong, because using xml:lang alone should not be used
>> - I wonder whether the HTML5+RDFa is correct; it could be understood as if xml:lang alone is acceptable. I think it would be better to refer to the HTML5 definition on how to set the language
>> 
>> (Of course, an RDFa processor may be lax. I have now accepted a single xml:lang, although I will issue a processor warning.)

It may be that a broad number of tests from RDFa 1.0 should be removed for HTML5, in addition to xml:lang, there's xmlns; not an appropriate prefix for HTML5.

Gregg

>> ----
>> Ivan Herman, W3C Semantic Web Activity Lead
>> Home: http://www.w3.org/People/Ivan/
>> mobile: +31-641044153
>> FOAF: http://www.ivan-herman.net/foaf.rdf
>> 
>> 
>> 
>> 
>> 
> 
> 
> ----
> Ivan Herman, W3C Semantic Web Activity Lead
> Home: http://www.w3.org/People/Ivan/
> mobile: +31-641044153
> FOAF: http://www.ivan-herman.net/foaf.rdf
> 
> 
> 
> 
> 
Received on Friday, 9 March 2012 16:44:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:56 UTC