bigskysoftware / bigskysoftware/htmx

Support short notation for boolean values (e.g. hx-boost instead of hx-boost="true")

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

Description

According to the HTML [specification for boolean attributes](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes) it should be possible to write for example hx-boost (data-hx-boost) instead of hx-boost="true" (data-hx-boost="true").

>>The presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.

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.