[whatwg] Map lang to xml:lang at the parser level

Anne van Kesteren fora at annevankesteren.nl
Mon Oct 23 23:39:54 PDT 2006


On Mon, 23 Oct 2006 12:52:44 +0200, Henri Sivonen <hsivonen at iki.fi> wrote:
> I think this proposal is definitely worth considering. Would it have any  
> ill effects on scripting compatibility with Appendix C XHTML soup served  
> as text/html? In cases like <p lang='en' xml:lang='fr'> the DOM would  
> not be exactly the same as in legacy browsers. (I am assuming here that  
> xml:lang='fr' would disappear in text/html parsing and lang='en' would  
> be treated as a meaningless attribute on the application/xhtml+xml side.)

Actually, in that case you would have on attribute lang="en" in the XML  
namespace and one attribute xml:lang="fr" in no namespace.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>




More information about the whatwg mailing list