WordPress · infra · fg-0094

't.composedPath(...)[0].getRootNode is not a function' only appears on synthetic events

Uncaught TypeError: t.composedPath(...)[0].getRootNode is not a function

Verified 2026-08-19 · Confirmed by 0 builders · Trust 50/100

Cause

WP Rocket's delayed-JS handler calls getRootNode on the event target without checking it is a Node. An event dispatched on window has no getRootNode, so synthetic events throw; real clicks on page elements do not.

Fix

Do not treat it as a broken button. Reproduce with a real click, not window.dispatchEvent.

Apply

Test with a real pointer click in a browser automation tool rather than window.dispatchEvent(new Event('click'))

Affects: WP Rocket delay JS, August 2026

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp