You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
<body>
<!-- The application will be rendered inside this element,
because `src/client.js` references it -->
<div id='sapper'>%sapper.html%</div>
<!-- Sapper creates a <script> tag containing `src/client.js`
and anything else it needs to hydrate the app and
initialise the router -->
%sapper.scripts%
<noscript>
<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=&ev=PageView&noscript=1" />
</noscript>
</body>
</html>
To Reproduce
npx degit "sveltejs/sapper-template#rollup" my-app
cd my-app
npm i
npm run export
Expected behavior
file should end with expected closing tags
The text was updated successfully, but these errors were encountered:
I don't think you should leave any tag open, they weren't made so "by design". Although the hmlt specs says it is valid syntax it also informs about possible bugs because unclosed tags.
From the specs:
"A body element's end tag may be omitted if the body element is not immediately followed by a comment."
@vndre If the html spec says it is valid, then it is valid. The whole point of minification is to reduce the file size to the bare minimum without breaking anything (i.e. staying spec-compliant).
Describe the bug
the index.html created using
sapper export
is missing </ body> and </ html> closing tagsSapper v0.28.2
Here is an extract of my generated html file:
template.html:
To Reproduce
npx degit "sveltejs/sapper-template#rollup" my-app
cd my-app
npm i
npm run export
Expected behavior
file should end with expected closing tags
The text was updated successfully, but these errors were encountered: