bigskysoftware / bigskysoftware/htmx

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

Open
#3,450 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.