MCPcopy
hub / github.com/irbis-sh/zen-desktop / run

Method run

jslibs/extended-css/src/parse/extendedPseudoClasses/not.ts:14–29  ·  view source on GitHub ↗
(input: Element[])

Source from the content-addressed store, hash-verified

12 }
13
14 run(input: Element[]): Element[] {
15 const matched: Set<Element> = new Set();
16
17 const matchedEls = this.executor.match(document.documentElement);
18 for (const element of matchedEls) {
19 matched.add(element);
20 }
21
22 const filtered = [];
23 for (const element of input) {
24 if (!matched.has(element)) {
25 filtered.push(element);
26 }
27 }
28 return filtered;
29 }
30
31 toString() {
32 // A complete implementation would store the selector passed to the

Callers

nothing calls this directly

Calls 3

addMethod · 0.80
pushMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected