6 testRunner
.dumpAsText();
9 str
+= "Hostname is " + document
.links
[i
].hostname
+ ". Host is " + document
.links
[i
].host
+ "<br>";
10 document
.getElementById("hostname_host").innerHTML
= str
;
14 <body onload=
"load()">
15 <a href=
"http://dev.w3.org:80/html5/spec/infrastructure.html#interfaces-for-url-manipulation">http with default port
</a><br>
16 <a href=
"https://dev.w3.org:443/html5/spec/infrastructure.html#interfaces-for-url-manipulation">https with default port
</a><br>
17 <a href=
"ftp://dev.w3.org:21/html5/spec/infrastructure.html#interfaces-for-url-manipulation">ftp with default port
</a><br>
19 <a href=
"http://dev.w3.org:123/html5/spec/infrastructure.html#interfaces-for-url-manipulation">http with non-default port
</a><br>
20 <a href=
"https://dev.w3.org:123/html5/spec/infrastructure.html#interfaces-for-url-manipulation">https with non-default port
</a><br>
21 <a href=
"ftp://dev.w3.org:123/html5/spec/infrastructure.html#interfaces-for-url-manipulation">ftp with non-default port
</a><br>
23 <a href=
"http://dev.w3.org/html5/spec/infrastructure.html#interfaces-for-url-manipulation">http without port
</a><br>
24 <a href=
"https://dev.w3.org/html5/spec/infrastructure.html#interfaces-for-url-manipulation">https without port
</a><br>
25 <a href=
"ftp://dev.w3.org/html5/spec/infrastructure.html#interfaces-for-url-manipulation">ftp without port
</a><br>
27 <a href=
"http://dev.w3.org:0/html5/spec/infrastructure.html#interfaces-for-url-manipulation">http with port
0</a><br>
28 <span id=
"hostname_host"></span>