-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
remove the white space after the doctype according to the property co… #7242
Conversation
🦋 Changeset detectedLatest commit: 1512f4a The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@matthewp Are there any streaming concerns with this? I feel like surely we made it so there's a newline after the doctype for a reason. |
will it break something ? |
I don't think so. Newlines typically mean the browser will flush the buffer and attempt to parse the latest chunk as HTML, so in this case it will process the doctype when the first chunk is flushed. Seems like fine behavior to me. |
Co-authored-by: Bjorn Lu <[email protected]>
@matthewp The rest of the function is still faulty, the suggestion only correct one instance |
I noticed that and i fixed it |
Thanks! |
…mpressHTML
fix #7162
Changes
remove the white space after the doctype according to the property compressHTML
Testing
Docs