(target: Element)
| 208 | const matchSelector = (hint.match || []).join(', '); |
| 209 | |
| 210 | function checkMatch(target: Element) { |
| 211 | if (target.matches?.(matchSelector)) { |
| 212 | stopDetectingUsingHint(); |
| 213 | success(); |
| 214 | return true; |
| 215 | } |
| 216 | return false; |
| 217 | } |
| 218 | |
| 219 | function setupMatchObserver(target: Element) { |
| 220 | hintMatchObserver?.disconnect(); |
no test coverage detected