You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to output element-related text with JavaScript, you like to use the language that corresponds to the element. For example, in custom elements.
The current approach is to search for .closest([lang]).
But if it is not present, or incorrect, it becomes more difficult.
It would be desirable to have a property Element.computedLang that uses the same procedure as internally the CSS pseudo-class :lang().
What do you think?
The text was updated successfully, but these errors were encountered:
nuxodin
changed the title
Proposal: Element.computedLang()
Proposal: Element.computedLang
Jun 8, 2022
Hi,
If you want to output element-related text with JavaScript, you like to use the language that corresponds to the element. For example, in custom elements.
The current approach is to search for
.closest([lang])
.But if it is not present, or incorrect, it becomes more difficult.
It would be desirable to have a property
Element.computedLang
that uses the same procedure as internally the CSS pseudo-class :lang().What do you think?
The text was updated successfully, but these errors were encountered: