4ecb44111d
According to MDN, document.activeElement can be null if there is no focused element.
According to MDN, document.activeElement can be null if there is no focused element.