2 <base href=
"file:///BASE/">
5 table { border-spacing:
0; border-collapse: collapse; border:
1px solid #
999; }
6 thead { font: x-small 'Lucida Grande'; }
7 thead
> tr { background-color: #dee; border-bottom:
1px solid #
999; }
8 td, th { padding:
4px; border-width:
0 1px; border-style: solid; border-color: #
999 }
9 tbody { font: small monospace; }
10 tbody
> tr:nth-child(odd) { background-color: #eee; }
15 The following table shows how URLs are parsed and canonicalized. The base URI
16 for this document is
<tt>file:///BASE/
</tt>.
27 <tbody id =
"results"></tbody>
30 if (window
.testRunner
)
31 testRunner
.dumpAsText();
35 var anchor
= document
.createElement("a");
38 var row
= document
.getElementById("results").appendChild(document
.createElement("tr"));
39 row
.appendChild(document
.createElement("td")).appendChild(anchor
).appendChild(document
.createTextNode(url
));
40 row
.appendChild(document
.createElement("td")).appendChild(document
.createTextNode(anchor
.href
));
41 row
.appendChild(document
.createElement("td")).appendChild(document
.createTextNode(anchor
.host
));
42 row
.appendChild(document
.createElement("td")).appendChild(document
.createTextNode(anchor
.pathname
));
64 "file://localhost/test",
72 "http://localhost/test",
83 for (var i
= 0; i
< testCases
.length
; ++i
)