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

Make sure SVG and HTML elements exist before using them. #441 #442

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Jun 13, 2019

If the input jax fails to process the given input, the resulting SVG or HTML element for the output will not exist. So check that svg and html elements exist before trying to use them.

This resolves issue #441.

@pkra
Copy link
Contributor

pkra commented Jun 14, 2019

This looks ok to me.

But perhaps there should be some error or warning when an output is requested but cannot be fulfilled?

@dpvc
Copy link
Member Author

dpvc commented Jun 14, 2019

When the SVG or HTML element is not generated, that means something went wrong in the input our output jax, and that should cause a Math Processing Error, which will already be in the error array. I can add an additional message, if you think that is a help, but there should already be an error there already. Let me know if you think an additional message is necessary and I'll modify the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants