Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: null check closest.getAttribute (#4763)
If the HTML element doesn't have a lang attribute, Edge throws an exception when calling closest.getAttribute because tag.closest('[lang]') returns an empty object (which will be coerced to true) instead of null.
- Loading branch information