open-url-base.htm (857B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>XMLHttpRequest: open() resolving URLs - <base></title> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <base href="./resources/"> 8 <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]" /> 9 <link rel="help" href="https://xhr.spec.whatwg.org/#the-responsetext-attribute" data-tested-assertations="following::ol/li[4]" /> 10 </head> 11 <body> 12 <div id="log"></div> 13 <script> 14 test(function() { 15 var client = new XMLHttpRequest() 16 client.open("GET", "folder.txt", false) 17 client.send(null) 18 assert_equals(client.responseText, "bottom\n") 19 }) 20 </script> 21 </body> 22 </html>