-
Notifications
You must be signed in to change notification settings - Fork 363
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
Bug with src attribute of <img > tag - with SVG and with absolute/relative path #353
Comments
Yes, you have found a couple of bugs:
I’ve been a bit quiet lately, but I will fix these, so thanks for reporting. |
Hi @ieugen, I've added some better error handling and a test. However, I've just re-looked at your stack traces and noticed a couple of things. I'm not sure I've addressed the correct problems. For the relative case, I think the problem might be with the URI resolver and a document at the root of a web server. Maybe, it's not adding a slash. Is the XHTML document literally the index page. ie I'm also not sure what's going on in the absolute case. It should definitely be going through a URI resolver. Anyway, I'm going to do a release in the next couple of days, so if you have time, maybe you could give it another try? |
Please reopen as required. |
Hello,
I've stumbeled on some bugs (I think) when using
img
tag with SVG.If the SVG does not exist, it renders a very strange error - that is impossible to figure out the cause of, without debugging the java app. It is the first error bellow.
Also, I've notice some other issues:
Exception when using a SVG that does not exist:
<img src="/my-missing.svg" />
Without leading slash (relative url):
<img src="my-missing.svg" />
The text was updated successfully, but these errors were encountered: