htmx 4 metaCharacter affecting event names
":" 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 setting should probably be "." anyway, same readability and standard conforming.
0 条评论