Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(utils): Shim Element in non-DOM environments (#1387)
The function `DOMElement` in `utils.js` throws a `ReferenceError` in non-DOM environments such as Node, due to the fact that it references `Element` on the right-hand side of an `instanceof` check, which is (most probably) undefined in non-DOM environments. This pull request adds a small shim for the `Element` object in order to prevent `DOMElement` from throwing an error if `Element` is not defined.
- Loading branch information