-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Sveltekit build not rendering HTML properly #12252
Comments
Please provide a minimal reproduction in the form of a downloadable repository. Otherwise, I’m inclined to think this is an issue with how browsers handle anchor tags nested in other anchor tags. A similar issue to this is withastro/astro#4864 |
It is not a browser issues, this is just invalid according to the spec.
|
Describe the bug
When building the code to production, Sveltekit is not rendering the code as it's supposed to be.
This is how my code looks like in editor:
When previewing it with 'npm run dev', it renders the code properly:
But after building it to production, this is how it's rendered into view:
In the last picture, the div is outside the anchor tag, causing the layout to be broken, and another anchor tag is created inside it.
Reproduction
Create a project, add an anchor tag on a page, then insert content into a div inside it, and build/preview the project.
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: