2 <script src=
"../../../resources/js-test.js"></script>
7 description('Tests how setting href attributes affects setting a new base for the URL.');
9 var base
= document
.querySelector('base');
10 var a
= document
.querySelector('a');
12 base
.href
= 'http://old_base/';
14 shouldBeEqualToString('a.href', 'http://old_base/foo?query');
15 base
.href
= 'http://new_base/';
16 shouldBeEqualToString("document.querySelector('a').href", 'http://new_base/foo?query');
18 // Remove @href to allow js-test-post to load.