bigskysoftware / bigskysoftware/htmx

htmx 4 metaCharacter affecting event names

Open
#3,803 2 comments 0 reactions 0 assignees View on GitHub
htmx 4
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

":" in html attributes names is invalid according to W3C standards, so the config.metaCharacter is a must if you need/want to adhere to those standards. Sadly this setting also affects event names, where I honestly don't see any reason to change them.
This is
1. confusing
2. unaesthetic, as it breaks event naming conventions.

proposed solution:
make metaCharacter not affect event names OR if that feature is necessary split the configs, i.e. attributeMetaCharacter, eventMetaCharacter

slightly off topic, but the default for attributes should probably be "." anyway, same readability and standard conforming.

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.