W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > January 2013

RE: question on issue-110 (xml:lang vs. lang)

From: Mārcis Pinnis <marcis.pinnis@Tilde.lv>
Date: Thu, 31 Jan 2013 17:13:16 +0200
To: Yves Savourel <ysavourel@enlaso.com>, Leroy Finn <finnle@tcd.ie>, "Felix Sasaki (fsasaki@w3.org)" <fsasaki@w3.org>
CC: "public-multilingualweb-lt@w3.org" <public-multilingualweb-lt@w3.org>
Message-ID: <AC6FD4BB9BB02540AC7322091A6C3B5472B0F01544@postal.Tilde.lv>
Hi All,

Has there been a consensus on this question? That is, will the test file be deleted if it is not correct?

I mean, we have the parser for HTML (5), but not for XHTML (which allows "its-..." attributes in the body instead of "its:..."). If the Test Suite will have XHTML examples, then maybe these should be put under a new format - xhtml (in the same level as xml and html)?

Best regards,
Mārcis ;o)

-----Original Message-----
From: Yves Savourel [mailto:ysavourel@enlaso.com] 
Sent: Wednesday, January 30, 2013 5:39 PM
To: public-multilingualweb-lt@w3.org
Subject: RE: question on issue-110 (xml:lang vs. lang)

Thanks Leroy,

But now we have an XHTML document in our HTML5 test suite.
I don’t think that is correct.

Jirka pointed to the HTML5 part of the specification that deals with xml:lang:

It says: “Authors must not use the lang attribute in the XML namespace on HTML elements in HTML documents."

And also: "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."

So my conclusion is:

a) we can use "xml:lang" in an HTML5 document, but that's not the XML's xml:lang, and it must be there only when lang is also there.

b) if both the 'xml:lang' and lang attributes are present the document is not valid if the values are not the same (in an ASCII case-insensitive manner)

--> Therefore we cannot have valid HTML5 document with lang and xml:lang 
--> with different values, therefore we can just read the lang attribute 
--> to get the right value therefore we should not have any precedence expectation, nor test for it.


Received on Thursday, 31 January 2013 15:13:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:00 UTC