summaryrefslogtreecommitdiffstats
path: root/dom/security/test/general/file_data_download.html
blob: 4cc92fe8f5c8d157a045f71fe99e8a806c489758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE HTML>
<html>
<head>
  <title>Test download attribute for data: URI</title>
</head>
<body>
  <a href="data:text/html,<body>data download</body>" download="data-foo.html" id="testlink">download data</a>
  <script>
    // click the link to have the downoad panel appear
    let testlink = document.getElementById("testlink");
    testlink.click();
  </script>
  </body>
</html>