1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<base href="http://localhost/test/sub/" />
<script>
document.write('window.location.href: '+window.location.href);
document.write('<br>');
document.write('document.baseURI: '+document.baseURI);
</script>
<hr/>
<embed type="application/x-shockwave-flash"
border="1"
src="test.swf"
height="100" width="400">
src="test.swf" no base (expect XML:sub)
<hr/>
<embed type="application/x-shockwave-flash"
border="1"
src="test.swf"
height="100" width="400"
base="..">
src="test.swf" base=".." (expect XML:root)
<hr/>
<embed type="application/x-shockwave-flash"
border="1"
src="../test.swf"
height="100" width="400">
src="../test.swf" no base (expect XML:sub)
<hr/>
<a href="../test.html">unbased</a>
|
<a href="test.html">sub</a>
|