UNPKG

406 BTypeScriptView Raw
1/**
2 * Same as document.activeElement but wraps in a try-catch block. In IE it is
3 * not safe to call document.activeElement if there is nothing focused.
4 *
5 * The activeElement will be null only if the document or document body is not
6 * yet defined.
7 */
8declare function getActiveElement(doc?: Document): HTMLElement | null | undefined;
9
10declare namespace getActiveElement {}
11
12export = getActiveElement;