« Web spotting roundup: the WASP lead edition | Main | Tokyo hosts SVG Open 2007 »
lang attributes accross (X)HTML versions
There has been a discussion about
lang attributes on the RDFa mailing-list, on what should be used depending on the HTML version. So I have done a bit or research and compilation and here are the results.
The lang attribute
W3C Internationalization has created a full tutorial on declaring language in XHTML and HTML.As the tutorial says that
information about the language in use on a page is important for accessibility, styling, searching.. You can also read Using attributes to declare language.
lang attributes in specifications
Filed by Karl Dubost on August 28, 2007 6:40 AM in HTML, Reference
| Permalink | Comments (5) | TrackBacks (0)
@Richard: This is an interesting information. Do you have a link to an implementation report for the products which behave as such and those which don't and in which circumstances. I'm pretty sure it would be helpful for the community and the HTML WG.
It's only the case when xml:lang is inserted through the DOM. The attribute as such can't be written in a text/html document as text/html doesn't do namespaces. (You can test this all fairly trivially using the :lang selector.)
Hi there, i was not able to read this page (comments section) properly in IE7. So out of doubt, i checked this page for its validity... this page is not valid and has four errors. but primarly, can some one look why it does not show properly in IE7?
Note that there are now ongoing and promising discussions on bringing the lang attribute to all versions of XHTML..
Richard Ishida # 2007-08-28
"When there is a conflict between xml:lang and lang values, xml:lang takes precedence even served as text/html."
Well, that's the theory, but as far as I'm aware from testing it is not at all the practice. This may not be clear to some people, and may cause some confusion when they read this post.