Skip to content

Support hx-status:*="#error" #3894

Description

@volodymyrprokopyuk

Hi!

Thank you for the excellent HTMX v4 library!

Are there plans to support hx-status:*="#error" to catch all not explicitly handled errors? Currently 4xx and 5xx errors have to be handled separately, even if they have the same target:

  • hx-status:422="#form" hx-status:4xx="#error" hx-status:5xx="#error". It is much more convenient to substitute this with just
  • hx-status:422="#form" hx-status:*="#error".

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions