W3C home > Mailing lists > Public > public-qa-dev@w3.org > March 2008

Re: Testing RFC 4646 values in markup languages

From: Karl Dubost <karl@w3.org>
Date: Tue, 18 Mar 2008 18:18:10 +0900
Cc: Olivier Théreaux <ot@w3.org>, "public-qa-dev@w3.org list" <public-qa-dev@w3.org>
Message-Id: <99026F40-C685-4355-BA66-291BD4D75F14@w3.org>
To: Felix Sasaki <fsasaki@w3.org>


Le 18 mars 2008 à 16:47, Felix Sasaki a écrit :
> HTML 4.01  is talking about the lang attribute, but not xml:lang. So  
> I think the above statement "The following attributes are  
> common ..." does not contradict HTML 4.01. . However, it may make  
> sense to align the behavior of lang and xml:lang: that is, to change  
> the requirements for lang and let it appear at any element, or to  
> change the requirements for xml:lang so that it may not appear on  
> APPLET, BASE etc. That looks like a question for the HTML and i18n  
> core WGs, and after it is decided it would be a question for the  
> conformance checker. What do you think?

note that HTML 4.01 defines the content model.

HTML 4 is a language with two serializations and a lot of profiles.

HTML 4
   sgml -> HTML 4.01
   xml  -> XHTML 1.0, XHTML 1.1, XHTML Basic, etc.


This is not valid XHTML 1.0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd 
">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head> <title>example of xhtml</title> </head>
<body>
    <p>foo <br xml:lang="en"/> bar</p>
</body>
</html>

>> html5 served as application/xhtml+xml
>>
>> <html xmlns="http://www.w3.org/1999/xhtml">
>> <head> <title>example of xhtml</title> </head>
>> <body>
>>    <p>foo <br xml:lang="en"/> bar</p>
>> </body>
>> </html>
>>
>>
>> What a Conformance checker should do here?

 From html 5 (application/xhtml+xml), point of view this is conformant.

> it should implement the currently different requirements for lang  
> and xml:lang and not complain, or - if the HTML WG / i18n folks  
> agree on changing the xml:lang behavior as described above - it  
> should complain.

Maybe henri has a different interpretation than me.

--
Karl Dubost - W3C
http://www.w3.org/QA/
Be Strict To Be Cool
Received on Tuesday, 18 March 2008 09:18:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 19 August 2010 18:12:48 GMT