How to simulate clicks on non-supported HTML elements
Why HTMLElement.click() silently fails on SVG, and the modern MouseEvent-dispatch one-liner that actually triggers the click on any element.
Tag
3 posts tagged with this.
javascript ·
Why HTMLElement.click() silently fails on SVG, and the modern MouseEvent-dispatch one-liner that actually triggers the click on any element.
javascript ·
A tiny config-driven helper that builds, attributes, and inserts DOM nodes in one call — the primitive that powers most of my A/B test variants.
ab-testing ·
The original requestAnimationFrame helper that fires A/B test events when an element scrolls into view — predecessor to the Intersection Observer rewrite.