-
Notifications
You must be signed in to change notification settings - Fork 66
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
Conversation
|
{ | ||
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>`, |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep that seems reasonable!
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.