(target: string, root: Root)
| 51 | } |
| 52 | |
| 53 | function cssMany(target: string, root: Root): Element[] { |
| 54 | try { |
| 55 | return Array.from(root.querySelectorAll(target)) |
| 56 | } catch (_e) { |
| 57 | throw botError(INVALID_SELECTOR, 'An invalid or illegal CSS selector was specified: ' + target) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | function idMany(target: string, root: Root): Element[] { |
| 62 | if (!target) { |
no test coverage detected