lang and xml:lang Re: 3.4. Global attributes

Le 30 juil. 2007 à 21:40, Anne van Kesteren a écrit :
>> 3.4.3. The lang (HTML only) and xml:lang (XML only) attributes
>> http://dev.w3.org/html5/spec/Overview.html#lang
>> Disappointed that this explicitly requires different attributes for
>> each serialisation (but can't offer a solution).
>
> I still think it makes some sense to allow lang= in both.

Note that the specification already handles the case where both  
values are present.

	"If both the xml:lang attribute and the lang
	attribute are set on an element, user agents
	must use the xml:lang attribute, and the lang
	attribute must be ignored for the purposes of
	determining the element's language."

It means that it is only a requirement for authors (and then a flag  
in a conformance checker) to use the appropriate value in each  
serialization.


The xml:lang processing is given by XML specification. I do not see  
differences so far between the requirements in HTML 5 and XML. So  
HTML 5 could just refer to this section for the processing.
    http://www.w3.org/TR/REC-xml/#sec-lang-tag


-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***

Received on Tuesday, 31 July 2007 05:01:20 UTC