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

Add regression test for #776 #901

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Add regression test for #776 #901

merged 1 commit into from
Dec 20, 2023

Conversation

MoustaphaDev
Copy link
Member

Changes

Add a regression test for #776. The issue has been fixed in #891

Testing

Added a transform test

Docs

N/A bug fix, though ultimately, I think we want to discourages things like using elements before html.

Copy link

changeset-bot bot commented Nov 29, 2023

⚠️ No Changeset found

Latest commit: 08beab4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@MoustaphaDev MoustaphaDev marked this pull request as draft November 29, 2023 15:31
{
name: "Component before html II",
source: `<MainHead title={title} description={description} /><html lang="en"><body><slot /></body></html>`,
want: `<MainHead title={title} description={description}></MainHead><slot></slot>`,
Copy link
Member Author

Choose a reason for hiding this comment

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

The output looks incorrect but I believe it's intended?
(though this isn't related to this PR or #891. I'll open an issue so we can discuss about it)

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, both of these seem incorrect, to be honest. I'd expect the <html> and <body> to be preserved.

Copy link
Member Author

@MoustaphaDev MoustaphaDev Dec 18, 2023

Choose a reason for hiding this comment

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

Could we maybe merge this for now and close the issue as it wasn't actually about the incorrect markup, but the index out of range errors which have been fixed?

This bug apparently existed since at least v1.3.0 (which is the oldest version my playground supports) for normal elements.

I opened a new issue for this specific bug #913

Copy link
Member

Choose a reason for hiding this comment

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

Yep that seems reasonable!

@MoustaphaDev MoustaphaDev marked this pull request as ready for review November 29, 2023 18:09
@MoustaphaDev MoustaphaDev marked this pull request as draft December 14, 2023 20:54
@MoustaphaDev MoustaphaDev marked this pull request as ready for review December 18, 2023 14:38
@natemoo-re natemoo-re merged commit cef211b into main Dec 20, 2023
5 checks passed
@natemoo-re natemoo-re deleted the add-test-fixture branch December 20, 2023 16:10
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.

2 participants