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
Unable to display valid HTML #5430
Comments
You're right that it is in the url-checking code. It has to do with SVG strings, as far as I can tell. The url in this case is an svg string, and as far as I can tell the jupyterlab/packages/coreutils/src/url.ts Line 150 in 0a0fbf9
|
I think you could make the case that we shouldn't be checking urls inside of svg elements. |
I don't think urls are checked inside SVG elements, the above code path would go inside renderHTML @acarl005 , could you try
instead? |
@Madhu94 Thanks for the suggestion. That does work for only the SVG, as in this example. However, in my real notebook, that SVG is actually embedded in some other HTML, hence the use of |
The fix is in #5610 |
May I ask the minimum version of jupyterlab that includes the fix? [Update] Thanks, it was fixed in 1.0 |
Looks like this automatically re-opened when I mentioned it in some other PR. Sorry for the inconvenience. |
Describe the bug
Fails to display valid SVG.
To Reproduce
Steps to reproduce the behavior:
In a python cell:
Expected behavior
An SVG of a tree diagram should render below the cell, as it renders just fine when saved to a separate file and opened in a tab. Also works fine in Jupyter Notebook.
Desktop (please complete the following information):
Additional context
There is an exception thrown in the console, something about unable to call
e.toLowerCase()
insideurl.js
. Looks like its trying to parse a URL but was passedundefined
.The text was updated successfully, but these errors were encountered: