fabric.loadSVGFromString should work on IE8 and lower...

This commit is contained in:
Tim de Koning 2012-01-17 17:29:45 +01:00
parent da9c75c073
commit 364e76713c

View file

@ -629,11 +629,9 @@
}
else if (fabric.window.ActiveXObject) {
var doc = new ActiveXObject('Microsoft.XMLDOM');
if (doc && doc.loadXML) {
doc.async = 'false';
//IE chokes on DOCTYPE
doc.loadXML(string.replace(/<!DOCTYPE[\s\S]*?(\[[\s\S]*\])*?>/i,''));
}
doc.async = 'false';
//IE chokes on DOCTYPE
doc.loadXML(string.replace(/<!DOCTYPE[\s\S]*?(\[[\s\S]*\])*?>/i,''));
}
fabric.parseSVGDocument(doc.documentElement, function (results, options) {