changeset 2913:b7347521a226

Fix Firefox not downloading new test_create pages
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 01 Aug 2017 14:13:07 +0100
parents 7b6cdd27f3ee
children fc41c3d909b7
files test_create/test_core.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test_create/test_core.js	Tue Aug 01 14:07:10 2017 +0100
+++ b/test_create/test_core.js	Tue Aug 01 14:13:07 2017 +0100
@@ -121,10 +121,12 @@
         });
         var dnlk = window.URL.createObjectURL(bb);
         var a = document.createElement("a");
+        document.body.appendChild(a)
         a.href = dnlk;
         a.download = "test.xml";
         a.click();
         window.URL.revokeObjectURL(dnlk);
+        document.body.removeChild(a);
     };
     $s.validated = false;
     $s.showValidationMessages = false;