mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-22 20:25:49 +00:00
improved doctype removal regex
This commit is contained in:
parent
17931fb764
commit
da9c75c073
1 changed files with 1 additions and 1 deletions
|
|
@ -632,7 +632,7 @@
|
|||
if (doc && doc.loadXML) {
|
||||
doc.async = 'false';
|
||||
//IE chokes on DOCTYPE
|
||||
doc.loadXML(string.replace(/<!DOCTYPE.*?>/i,''));
|
||||
doc.loadXML(string.replace(/<!DOCTYPE[\s\S]*?(\[[\s\S]*\])*?>/i,''));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue