MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / safeMatches

Function safeMatches

packages/cli/src/commands/keyframes.ts:461–467  ·  view source on GitHub ↗
(el: Element, sel: string)

Source from the content-addressed store, hash-verified

459}
460
461const safeMatches = (el: Element, sel: string): boolean => {
462 try {
463 return el.matches(sel);
464 } catch {
465 return false;
466 }
467};
468
469// Animated-target selectors of `target`'s DOM ancestors (in order, parent-first).
470function animatedAncestors(doc: Document, target: string, animated: string[]): string[] {

Callers 1

animatedAncestorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected