Revision 826375a734caf3cbe9b757ca69dbef9d578aa76d authored by Robert Ma on 26 March 2018, 20:24:51 UTC, committed by GitHub on 26 March 2018, 20:24:51 UTC
1 parent 7988e17
Raw File
open-url-base.htm
<!DOCTYPE html>
<html>
  <head>
    <title>XMLHttpRequest: open() resolving URLs - &lt;base></title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <base href="./resources/">
    <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol/li[2]/ol/li[2] following::ol/li[7] following::ol/li[14]/ul/li[2]" />
    <link rel="help" href="https://xhr.spec.whatwg.org/#the-responsetext-attribute" data-tested-assertations="following::ol/li[4]" />
  </head>
  <body>
    <div id="log"></div>
    <script>
      test(function() {
        var client = new XMLHttpRequest()
        client.open("GET", "folder.txt", false)
        client.send(null)
        assert_equals(client.responseText, "bottom\n")
      })
    </script>
  </body>
</html>
back to top