How to obtain lang attribute in HTML using JavaScript?
lang
>
If both attributes agree on their values (as they should), it's enough to read either of them. I'd suggest using
document.documentElement.lang