-
-
Notifications
You must be signed in to change notification settings - Fork 62
-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
normalizeWhitespace with attributes and CDATA #11
Comments
|
Just to clarify, CDATA's whitespace is currently not preserved, correct? It isn't for me, anyway. |
No, there currently isn't any distinction between container elements. Maybe preserving whitespace would be relevant for script & style-tags as well? |
Ah, yes, agreed. Other parsers could be used to minify those more accurately. |
Also, it is important not to alter any whitespace inside |
+1 |
Closing as this is out of the scope of this library. |
They should be preserved, or provide a
preserveSensitiveWhitespace
option.The issue I'm having is with CSS styles within CDATA;
content
and URLs need those spaces.The text was updated successfully, but these errors were encountered: