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
When we try to set incorrect URL we get empty xml variable. It call callback with null, but we need prevent function, something like return false, etc. Because after callback(null) this code doesn't dying and try to call parseSVGDocument
Version
2.3.6
Test Case
When we try to set incorrect URL we get empty xml variable. It call callback with null, but we need prevent function, something like return false, etc. Because after callback(null) this code doesn't dying and try to call parseSVGDocument
http://joxi.ru/gmvpaj4TL85vPA
Steps to reproduce
fabric.loadSVGFromURL('https://www.cleverbrush.com/f/mu27s/w5jspy20v+.svg', objects => {
console.log(objects);
});
Expected Behavior
We need to get only null in console
Actual Behavior
We get also error - Cannot read property 'documentElement' of null
The text was updated successfully, but these errors were encountered: