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

fix: wrong spellcheck attribute value #388

Merged
merged 1 commit into from
Aug 15, 2024
Merged

fix: wrong spellcheck attribute value #388

merged 1 commit into from
Aug 15, 2024

Conversation

marvinhagemeister
Copy link
Member

Fixes #387

Copy link

changeset-bot bot commented Aug 15, 2024

🦋 Changeset detected

Latest commit: 4621fa3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-render-to-string Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -635,6 +635,9 @@ function _renderToString(
}
} else if (HTML_LOWER_CASE.test(name)) {
name = name.toLowerCase();
if (name === 'spellcheck') {
Copy link
Member

@rschristian rschristian Aug 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that it needs to be done here, but I think there's at least a handful of attrs/props that could need (depending on use circumstances) to be preserved as falsey.

Might be something we need to add another regex constant for in the future.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good point. Let's keep out an eye for that.

@marvinhagemeister marvinhagemeister merged commit 1754f99 into main Aug 15, 2024
1 check passed
@marvinhagemeister marvinhagemeister deleted the spellcheck branch August 15, 2024 08:03
@github-actions github-actions bot mentioned this pull request Aug 15, 2024
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.

spellcheck={false} not working
3 participants