mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-28 06:53:59 +00:00
fabric.loadSVGFromString should work on IE8 and lower...
This commit is contained in:
parent
da9c75c073
commit
364e76713c
1 changed files with 3 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue