David Duymelinck schrieb:
> John Resig schreef:
>>  Honestly, I've never seen anyone use
>> the lang attribute - let alone have a need to select it using a CSS
>> selector. Hence the reason for removing it.
>>   
> I've used the lang attribute of the html tag to extract the right 
> language for the links in a  multilingual top level navigation. This is 
> the code i use
> 
> var currentLang = $("html").eq(0).attr("lang");
> 
> I change the lang attribute with php. by doing that the site is also 
> semantically correct. we have three languages here so everything i do 
> has to be at least  multiple language ready.
> 
> Some people use the things you least expect :)

Yeah! I also use the attribute for an "Open new window" script that also 
adds a title (which of course is language dependent) to the links, that 
will open a new window.


-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to