diff --git a/XMLHttpRequest/abort-event-loadend.htm b/XMLHttpRequest/abort-event-loadend.htm index 948d4e00c921ec..7a92d072395c0f 100644 --- a/XMLHttpRequest/abort-event-loadend.htm +++ b/XMLHttpRequest/abort-event-loadend.htm @@ -16,7 +16,7 @@ { var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() + xhr.onloadstart = function() { test.step(function() { diff --git a/XMLHttpRequest/getresponseheader-error-state.htm b/XMLHttpRequest/getresponseheader-error-state.htm index 1a318639f922c1..63ac8c9cb73179 100644 --- a/XMLHttpRequest/getresponseheader-error-state.htm +++ b/XMLHttpRequest/getresponseheader-error-state.htm @@ -27,7 +27,7 @@ } }) } - var url = location.protocol + 'www1.' + location.hostname + (location.pathname.replace(/getresponseheader-error-state\.htm/, 'resources/nocors/folder.txt')) + var url = location.protocol + "//" + 'www1.' + location.hostname + (location.pathname.replace(/getresponseheader-error-state\.htm/, 'resources/nocors/folder.txt')) client.open("GET", url) client.send(null) })