(value: number | string | HTMLElement)
| 48 | } |
| 49 | |
| 50 | export function formatTargetNode(value: number | string | HTMLElement): string { |
| 51 | if (typeof HTMLElement !== 'undefined' && value instanceof HTMLElement) { |
| 52 | return (value.cloneNode(false) as HTMLElement).outerHTML; |
| 53 | } |
| 54 | return String(value); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Simulates a "long press" event on a element. |
no outgoing calls
no test coverage detected