diff --git a/test/dataUrlTest.js b/test/dataUrlTest.js index a96a36c..724539c 100644 --- a/test/dataUrlTest.js +++ b/test/dataUrlTest.js @@ -1,7 +1,13 @@ (function(){ "use strict"; - document.getElementById("code").textContent = atob( + var iframeCode = atob( document.getElementById("iframe").src.replace(/^.+base64,/, "") ); + + document.getElementById("code").textContent = iframeCode; + + var blob = new Blob([iframeCode], {type : 'text/html'}); + var newurl = window.URL.createObjectURL(blob); + document.getElementById("blobIframe").src = newurl; }()); \ No newline at end of file diff --git a/test/dataUrlTest.php b/test/dataUrlTest.php index 41a0793..e83ae2a 100644 --- a/test/dataUrlTest.php +++ b/test/dataUrlTest.php @@ -25,6 +25,8 @@ ) ); ?>"> +

blob iFrame

+

Data-URL object