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

Re: Testing RFC 4646 values in markup languages

From: Felix Sasaki <fsasaki@w3.org>
Date: Tue, 18 Mar 2008 20:32:55 +0900
Message-ID: <47DFA867.1090704@w3.org>
To: Karl Dubost <karl@w3.org>
CC: Olivier Théreaux <ot@w3.org>, "public-qa-dev@w3.org list" <public-qa-dev@w3.org>

Karl Dubost wrote:
>
> 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>

obviously yes, I should have checked 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd which has
<!ATTLIST br
  %coreattrs;
  >
<!ATTLIST body
  %attrs;
%coreattrs; does not contain the declaration for xml:lang, but  %attrs; 
does.


that is: XHTML 1 took the same design decisions as HTML 4.01 with 
respect to allowing lang only on some elements, and it aligned the 
occurrence of xml:lang with that decision. So the alignment  I had 
proposed  for lang and xml:lang is already given in  XHTML 1.

>
>>> 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.

that means that html 5 is not backwards compatible with the design 
decisions taken for the HTML 4.01 and XHTML 1 serializations of HTML 4.

Felix



>
>> 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 11:33:35 GMT

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