bigskysoftware / bigskysoftware/htmx

web-types: hx-on:: pattern fails to resolve compound (colon-containing) HTMX event names

Open Beginner friendly
#4,011 0 comments 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

## Summary

Some event names (`hx-on:load`, `hx-on:click`) resolve fine in IntelliJ IDEA. Others (`hx-on::before:request`, `hx-on::after:request`, etc.) — are flagged as "Unrecognized HTMX event".

## Repro

```html

```

IDE underlines `before:request` as unrecognized.

## Environment

- htmx: 4.0.0 (https://four.htmx.org/reference/attributes/hx-on)
- File: `editors/jetbrains/htmx.web-types.json`

Contributor guide

Open the contributing guide

Research direction

Open editors/jetbrains/htmx.web-types.json and inspect how hx-on event patterns are declared for simple names such as load and click. Update the pattern handling for colon-containing names such as before:request, then verify the provided HTML reproduction in IntelliJ IDEA no longer reports an unrecognized event.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
82/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.