(input: Element[])
| 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 |