FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixes #40: Interpolated zero values are taken as false (zeros are not diplayed) by aral · Pull Request #41 · developit/vhtml · GitHub

Fixes #40: Interpolated zero values are taken as false (zeros are not diplayed) - #41

Open
aral wants to merge 2 commits into
developit:masterfrom
aral:patch-1
Open

Fixes #40: Interpolated zero values are taken as false (zeros are not diplayed)#41
aral wants to merge 2 commits into
developit:masterfrom
aral:patch-1

Conversation

aral commented Mar 27, 2023
edited
Loading

Copy link
Copy Markdown

This enables vhtml to render interpolated numeric zero values.

See #40

aral added 2 commits March 25, 2023 19:26
Specifically check that child nodes are not strictly equal to `false` so that the value zero (0) gets rendered correctly.
Also add explicit checks for `undefined` and `null` (I’ve encountered `undefined` in my testing with [Kitten](https://codeberg.org/kitten/app). Haven’t hit `null` but it would also make it panic, so better safe than sorry). We could use a lax equality comparison (`==`) here but I prefer being explicit about it (but happy either way).
aral changed the title Fixes: Interpolated zero values are taken as false (zeros are not diplayed) Fixes #40: Interpolated zero values are taken as false (zeros are not diplayed) Mar 27, 2023
odinhb added a commit to dodoas/stringjsx that referenced this pull request Mar 8, 2024
fixes developit#40
and developit#37

inspired by developit#41

The only place we don't have parity right now is arrays (because that's
how children are passed) and bigint (because I'm not gonna do dependency
wrangling rn)
odinhb added a commit to dodoas/stringjsx that referenced this pull request Mar 8, 2024
fixes developit#40
and developit#37

inspired by developit#41

The only place we don't have parity right now is arrays (because that's
how children are passed) and bigint (because I'm not gonna do dependency
wrangling rn)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL