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 | */
|
8 | declare function getActiveElement(doc?: Document): HTMLElement | null | undefined;
|
9 |
|
10 | declare namespace getActiveElement {}
|
11 |
|
12 | export = getActiveElement;
|