Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow int literals in attribute values #415

Merged
merged 1 commit into from
Jan 14, 2024
Merged

Disallow int literals in attribute values #415

merged 1 commit into from
Jan 14, 2024

Conversation

lambda-fairy
Copy link
Owner

Allowing int literals in attribute values is potentially confusing, as foo=123usize is allowed but foo=usize123 is not.

Int literals in attribute names are still useful for htmx (e.g. hx-target-404) so we continue allowing that.

@lambda-fairy lambda-fairy merged commit 26a9d74 into main Jan 14, 2024
4 checks passed
@lambda-fairy lambda-fairy deleted the literal-int branch January 14, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant