Find the activeElement within the node or document and recursively pierce shadow boundaries.
node
document
The node to search within. (default: document)
Check if the node itself is the activeElement? (default: false)
The innermost activeElement within the node when it exists, otherwise null.
null
Find the activeElement within the
node
ordocument
and recursively pierce shadow boundaries.