We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Followup to #260, the compiler upgrade fixed it moving inside the body, but it now moves inside the html. That's still progress!
body
html
<html> <head> </head> <body> </body> </html> <style> </style>
becomes
<html> <head> </head> <body> </body> <style></style> </html>
See description
The text was updated successfully, but these errors were encountered:
One of the tests added in withastro/compiler#541 (the PR that closed withastro/compiler#318, "BUG: [AST] style tag is moved inside the body tag") is internal/printer/printer_test.go#L2545-L2549:
{ name: "style after html", source: `<html><body><h1>Hello world!</h1></body></html><style></style>`, want: []ASTNode{{Type: "element", Name: "html", Children: []ASTNode{{Type: "element", Name: "body", Children: []ASTNode{{Type: "element", Name: "h1", Children: []ASTNode{{Type: "text", Value: "Hello world!"}}}}}, {Type: "element", Name: "style"}}}}, },
The ASTNode looks like this when formatted:
{ {Type: "element", Name: "html", Children: { {Type: "element", Name: "body", Children: { {Type: "element", Name: "h1", Children: { {Type: "text", Value: "Hello world!"} } } } }, {Type: "element", Name: "style"} } } }
... So looks like this is a withastro/compiler issue. I just opened withastro/compiler#585.
withastro/compiler
Sorry, something went wrong.
@astrojs/compiler
0.29.1
Fixed by the compiler upgrade in #297
Successfully merging a pull request may close this issue.
Describe the Bug
Followup to #260, the compiler upgrade fixed it moving inside the
body
, but it now moves inside thehtml
. That's still progress!becomes
Steps to Reproduce
See description
The text was updated successfully, but these errors were encountered: