MCPcopy
hub / github.com/jquery/jquery / safeActiveElement

Function safeActiveElement

test/data/jquery-3.7.1.js:777–781  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

775// Accessing document.activeElement can throw unexpectedly
776// https://bugs.jquery.com/ticket/13393
777function safeActiveElement() {
778 try {
779 return document.activeElement;
780 } catch ( err ) { }
781}
782
783// Optimize for push.apply( _, NodeList )
784try {

Callers 1

jquery-3.7.1.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected