Skip to content
JavaScript·Advanced·Conceptual·1 min read

What is event.composedPath useful for?

Short interview answer

It returns the event's propagation path across relevant shadow boundaries, helping code understand retargeted events without assuming ordinary parent traversal.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to DOM events and delegation

Related questions