htmx 4.0 is under construction — migration guide

htmx.config.implicitInheritance

Enable implicit attribute inheritance

The htmx.config.implicitInheritance option, when set to true, causes child elements to implicitly inherit htmx attributes from parent elements.

Default: false

Example

htmx.config.implicitInheritance = true;
<meta name="htmx-config" content='{"implicitInheritance":true}'>

When enabled, attributes like hx-target on a parent apply to all child elements unless overridden.