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

Am 31.01.13 16:13, schrieb Mārcis Pinnis:
> 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)?

Hi Mārcis,

I have no clear answer to this yet. Yves is right about HTML5 content 
and that the don't cover XHTML. Nevertheless it is reality that a lot of 
content on the Web is in other formats than HTML5, and that includes 
XHTML. We also give informative guidance on what you can do with such 
content
http://www.w3.org/TR/2012/WD-its20-20121206/#usage-in-legacy-html
What I don't know is how much we should support such guidance with test 
files.

Best,

Felix

>
> 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:
> http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-lang-and-xml:lang-attributes
>
> 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.
>
> -yves
>
>
>

Received on Thursday, 31 January 2013 15:33:29 UTC