68 |
var output = document.getElementsByTagName ('output')[0]; |
var output = document.getElementsByTagName ('output')[0]; |
69 |
output.innerHTML = ''; |
output.innerHTML = ''; |
70 |
if (typeof (resultURL) == 'undefined') { |
if (typeof (resultURL) == 'undefined') { |
71 |
output.innerHTML = '(undefined)'; |
output.innerHTML = '(<code>undefined</code>)'; |
72 |
} else if (resultURL === null) { |
} else if (resultURL === null) { |
73 |
output.innerHTML = '(null)'; |
output.innerHTML = '(<code>null</code>)'; |
74 |
} else if (resultURL === '') { |
} else if (resultURL === '') { |
75 |
output.innerHTML = '(empty string - URL resolution failed?)'; |
output.innerHTML = '(empty string - URL resolution failed?)'; |
76 |
} else { |
} else { |
100 |
|
|
101 |
<dl> |
<dl> |
102 |
<dt><label for=resolved-url>Resolved URL</label>: |
<dt><label for=resolved-url>Resolved URL</label>: |
103 |
<dd><textarea id=resolved-url oninput="update()" onkeypress="update()"></textarea> |
<dd><textarea id=resolved-url oninput="update()" onchange="update()" onkeypress="update()"></textarea> |
104 |
<dt><label for=base-url>Base URL</label>: |
<dt><label for=base-url>Base URL</label>: |
105 |
<dd><textarea id=base-url oninput="update()" onkeypress="update()"></textarea> |
<dd><textarea id=base-url oninput="update()" onchange="update()" onkeypress="update()"></textarea> |
106 |
</dl> |
</dl> |
107 |
<hr> |
<hr> |
108 |
<dl> |
<dl> |
109 |
<dt>Result (Using <code>HTMLAnchorElement.href</code>): |
<dt>Result (Using <code>base href</code> and |
110 |
|
<code>HTMLAnchorElement.href</code>): |
111 |
<dd><output></output> |
<dd><output></output> |
112 |
</dl> |
</dl> |
113 |
|
|