Skip to content
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

removeWhitespace + outerHTML don't remove meaningless white-spaces inside start and end tags #274

Closed
Zhang-Junzhi opened this issue Apr 11, 2024 · 0 comments

Comments

@Zhang-Junzhi
Copy link

Zhang-Junzhi commented Apr 11, 2024

For example,

<!DOCTYPE html
><html                     lang="en"
><meta charset="UTF-8"
><title>test</title

><p>test</p

></html>

The extra white-spaces between html and lang="en" and the extra newlines inside tags aren't removed, even if I use removeWhitespace.
All regular browser implementations remove these meaningless white-spaces.

@taoqf taoqf closed this as completed in fef574d May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant