Mercurial > hg > webaudioevaluationtool
comparison test_create/test_core.js @ 2961:1593792ae742
fix bug introduced in 6e05fd48809259342e69b3cdd942bf458edd4c53
- serialization of xml version tag prevents export function from working
author | Thomas Schlien <schlien@iks.rwth-aachen.de> |
---|---|
date | Thu, 23 Nov 2017 14:03:28 +0100 |
parents | 5705787531a3 |
children | f99b888f57e9 c8707694f4e7 |
comparison
equal
deleted
inserted
replaced
2960:5705787531a3 | 2961:1593792ae742 |
---|---|
112 $s.specification.pages.splice(index, 1); | 112 $s.specification.pages.splice(index, 1); |
113 }; | 113 }; |
114 | 114 |
115 $s.exportXML = function () { | 115 $s.exportXML = function () { |
116 var s = new XMLSerializer(); | 116 var s = new XMLSerializer(); |
117 var doc = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" + specification.encode(); | 117 var doc = specification.encode(); |
118 var xmlstr = s.serializeToString(doc); | 118 var xmlstr = s.serializeToString(doc); |
119 var bb = new Blob([s.serializeToString(doc)], { | 119 var bb = new Blob(["<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" + s.serializeToString(doc)], { |
120 type: 'application/xml' | 120 type: 'application/xml' |
121 }); | 121 }); |
122 var dnlk = window.URL.createObjectURL(bb); | 122 var dnlk = window.URL.createObjectURL(bb); |
123 var a = document.createElement("a"); | 123 var a = document.createElement("a"); |
124 document.body.appendChild(a) | 124 document.body.appendChild(a) |