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

Assertion error while cleaning with empty attribute #7

Closed
jhy opened this issue Feb 15, 2010 · 1 comment
Closed

Assertion error while cleaning with empty attribute #7

jhy opened this issue Feb 15, 2010 · 1 comment
Labels
bug Confirmed bug that we should fix

Comments

@jhy
Copy link
Owner

jhy commented Feb 15, 2010

If you try to clean <img alt="" />, an IllegalArgumentException is thrown; there's an assertion in the Whitelist TypedValue that the value is not empty. Should be testing not null instead.

Thanks to François Goldgewicht (http://francois.goldgewicht.com) for reporting the issue.

@jhy
Copy link
Owner Author

jhy commented Feb 15, 2010

Assert attribute values are not null, not not empty.

Closed by 36c3b16.

michael-simons pushed a commit to michael-simons/jsoup that referenced this issue Jul 12, 2011
zazi pushed a commit to dswarm/jsoup that referenced this issue Oct 15, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug that we should fix
Projects
None yet
Development

No branches or pull requests

1 participant