Commit d74aa52f authored by zhangbobell's avatar zhangbobell

fix(png): fix bug in safari anchor title attribute namespace

parent 0fa8d221
...@@ -108,6 +108,10 @@ define(function(require, exports, module) { ...@@ -108,6 +108,10 @@ define(function(require, exports, module) {
// svg 含有   符号导出报错 Entity 'nbsp' not defined // svg 含有   符号导出报错 Entity 'nbsp' not defined
svgXml = svgXml.replace(/ /g, ' '); svgXml = svgXml.replace(/ /g, ' ');
// fix title issue in safari
// @ http://stackoverflow.com/questions/30273775/namespace-prefix-ns1-for-href-on-tagelement-is-not-defined-setattributens
svgXml = svgXml.replace(/NS\d+:title/gi, 'xlink:title');
blob = new Blob([svgXml], { blob = new Blob([svgXml], {
type: 'image/svg+xml' type: 'image/svg+xml'
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment