W3C home > Mailing lists > Public > public-html@w3.org > July 2007

lang and xml:lang Re: 3.4. Global attributes

From: Karl Dubost <karl@w3.org>
Date: Tue, 31 Jul 2007 14:01:10 +0900
Message-Id: <E6BFD914-1823-4F80-978D-95A89FFE5317@w3.org>
Cc: "Ben Boyle" <benjamins.boyle@gmail.com>, "HTML WG" <public-html@w3.org>
To: Anne van Kesteren <annevk@opera.com>


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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:47 UTC