You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside the jsonmlParse function, innerHTML it's used to parse the content returned by onmlStringify and create a svg image child:
function jsonmlParse (arr) {
var el = document.createElementNS(w3.svg, 'g');
el.innerHTML = onmlStringify(arr);
return el.childNodes[0];
}
My user agent is Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.15 (KHTML, like Gecko) Version/8.0 Safari/538.15 and it does not parse the content assigned to innerHTML.
I solved this problem by doing the following:
function jsonmlParse (arr) {
arr[1].xmlns = "http://www.w3.org/2000/svg";
arr[1]['xmlns:xlink'] = "http://www.w3.org/1999/xlink";
var svgStringify = onmlStringify(arr).replace(/&/g, "&");
var doc = new DOMParser().parseFromString(svgStringify, "image/svg+xml");
return doc.firstChild;
}
Can this make it in a feature release? Thanks.
The text was updated successfully, but these errors were encountered:
Inside the jsonmlParse function, innerHTML it's used to parse the content returned by onmlStringify and create a svg image child:
My user agent is Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.15 (KHTML, like Gecko) Version/8.0 Safari/538.15 and it does not parse the content assigned to innerHTML.
I solved this problem by doing the following:
Can this make it in a feature release? Thanks.
The text was updated successfully, but these errors were encountered: