-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Is the input HTML document required to be formatted? #1345
Comments
I found that formatting using prettiter is normal, but formatting inside vscode is not 2024-06-12.13-14-54.mp4 |
I find it normal to remove all comment nodes. |
The results must not vary depending on whether the HTML code is formatted or not, or whether there are comments or not. If it changes the result or causes errors, it is an obvious bug. The error "InvalidNodeTypeError: Failed to execute 'setStartBefore' on 'Range': the given Node has no parent." occurs in
node must have parent node but does not.
|
Describe the bug
I'm not sure if this is a bug, but when the same file is processed, one version is minified and the other is formatted; the minified file results in errors.
minified
formatted
The text was updated successfully, but these errors were encountered: