Checks if the given element or any of its children has focus.
The element to check for focus.
Whether to ignore the document's focus state.
True if the element or its children have focus, false otherwise.
Checks if the given element or any of its children has focus.