Skip to content

Using css :not() inside hx-trigger target: selector with parentheses is a syntax error. #3450

@teak

Description

@teak

Using a css :not() selector inside of an hx-trigger="click target:( ... )" should be valid. The following example causes a generic htmx:syntax:error with no explanation:

hx-trigger="click target:(td:not(.no-click) *)"

Using {} has the same error. My guess is incorrect parentheses parsing.

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