Re: Testing RFC 4646 values in markup languages

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 UTC