-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error with backarrow #193
Comments
@gruvw - I don't think this is a bug. While This should work for you: from minify_html import minify
print(minify("<a><- H</a>")) # `<a><- a h<>` except that bug #191 prevents this from working properly. |
Well, on a conceptual level, from the point of view of the user of a minifier, I would assume that I get the same output with or without using the minifier. In that particular case, I got a different result by using the minifier (thus the reason why I called it a bug/error). I am not very familiar with this particular project ( |
@gruvw - for any utility that processes input, I think it's fair to expect uncertain output behavior for invalid inputs. You can verify that this input is invalid by going to the W3C Markup Validation Service page and checking this HTML:
|
I generally prefer the utility to error instead of silently producing uncertain output, but I got your point. |
I ran into an error while using this minifier on strings of the following form:
<a><- H</a>
Expected behavior:
Actual behavior:
Minimal reproduce:
The text was updated successfully, but these errors were encountered: