{"action":"created","issue":{"url":"https://api.github.com/repos/mathjax/MathJax/issues/1396","repository_url":"https://api.github.com/repos/mathjax/MathJax","labels_url":"https://api.github.com/repos/mathjax/MathJax/issues/1396/labels{/name}","comments_url":"https://api.github.com/repos/mathjax/MathJax/issues/1396/comments","events_url":"https://api.github.com/repos/mathjax/MathJax/issues/1396/events","html_url":"https://github.com/mathjax/MathJax/pull/1396","id":135474715,"number":1396,"title":"Don't die if script has been removed from document","user":{"login":"uhoreg","id":1012976,"avatar_url":"https://avatars.githubusercontent.com/u/1012976?v=3","gravatar_id":"","url":"https://api.github.com/users/uhoreg","html_url":"https://github.com/uhoreg","followers_url":"https://api.github.com/users/uhoreg/followers","following_url":"https://api.github.com/users/uhoreg/following{/other_user}","gists_url":"https://api.github.com/users/uhoreg/gists{/gist_id}","starred_url":"https://api.github.com/users/uhoreg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uhoreg/subscriptions","organizations_url":"https://api.github.com/users/uhoreg/orgs","repos_url":"https://api.github.com/users/uhoreg/repos","events_url":"https://api.github.com/users/uhoreg/events{/privacy}","received_events_url":"https://api.github.com/users/uhoreg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-22T16:55:02Z","updated_at":"2016-02-22T18:24:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mathjax/MathJax/pulls/1396","html_url":"https://github.com/mathjax/MathJax/pull/1396","diff_url":"https://github.com/mathjax/MathJax/pull/1396.diff","patch_url":"https://github.com/mathjax/MathJax/pull/1396.patch"},"body":"[re-submit of #1395 rebased on the right branch]\r\n\r\nOn our site, which displays a live preview of math as users type it in, it appears that if users type too fast, MathJax will die and not display any more math. In the console, it complains that \"b.parentNode is null\". This patch checks b.parentNode (a.k.a. script.parentNode in the non-minified version) before calling b.parentNode.insertBefore().\r\n\r\nI suppose it would be better to check script.parentNode earlier in the process so that MathJax doesn't waste time processing something that won't be displayed, but this patch seems to work, and should probably be done anyways.\r\n\r\n[CLA will be signed shortly]"},"comment":{"url":"https://api.github.com/repos/mathjax/MathJax/issues/comments/187305711","html_url":"https://github.com/mathjax/MathJax/pull/1396#issuecomment-187305711","issue_url":"https://api.github.com/repos/mathjax/MathJax/issues/1396","id":187305711,"user":{"login":"dpvc","id":432782,"avatar_url":"https://avatars.githubusercontent.com/u/432782?v=3","gravatar_id":"","url":"https://api.github.com/users/dpvc","html_url":"https://github.com/dpvc","followers_url":"https://api.github.com/users/dpvc/followers","following_url":"https://api.github.com/users/dpvc/following{/other_user}","gists_url":"https://api.github.com/users/dpvc/gists{/gist_id}","starred_url":"https://api.github.com/users/dpvc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpvc/subscriptions","organizations_url":"https://api.github.com/users/dpvc/orgs","repos_url":"https://api.github.com/users/dpvc/repos","events_url":"https://api.github.com/users/dpvc/events{/privacy}","received_events_url":"https://api.github.com/users/dpvc/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T18:24:27Z","updated_at":"2016-02-22T18:24:27Z","body":"Thanks for changing the branches.  Once the CLA is in, I'll merge it."}}