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
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