bigskysoftware / bigskysoftware/htmx

Make swap values case-INsensitive

Open
#2,382 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

I regularly run into the situation where I've used a swap (`hx-swap` and `hx-swap-oob`) value of `innerHtml` instead of `innerHTML` (for example), which causes things not to work as expected.

Why are `innerHTML` and `outerHTML` case-sensitive?

If there's a good reason, then these values should be clearly marked with a warning that they're case-sensitive, otherwise (my preference) they should be case-insensitive to avoid such problems in the first place.

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.