64 |
doc.write ('<a href="' + htescape (resolvedURL) + '">xx</a>'); |
doc.write ('<a href="' + htescape (resolvedURL) + '">xx</a>'); |
65 |
doc.close (); |
doc.close (); |
66 |
|
|
67 |
var resultURL = doc.getElementsByTagName ('a')[0].href; |
var aEl = doc.getElementsByTagName ('a')[0]; |
68 |
var output = document.getElementsByTagName ('output')[0]; |
var resultURL = aEl.href; |
69 |
|
var output = document.getElementById ('output-url'); |
70 |
output.innerHTML = ''; |
output.innerHTML = ''; |
71 |
if (typeof (resultURL) == 'undefined') { |
if (typeof (resultURL) == 'undefined') { |
72 |
output.innerHTML = '(<code>undefined</code>)'; |
output.innerHTML = '(<code>undefined</code>)'; |
78 |
output.innerHTML = '<code>' + htescape2 ('' + resultURL) + |
output.innerHTML = '<code>' + htescape2 ('' + resultURL) + |
79 |
'</code> of type <code>' + htescape (typeof (resultURL)) + '</code>'; |
'</code> of type <code>' + htescape (typeof (resultURL)) + '</code>'; |
80 |
} |
} |
81 |
|
|
82 |
|
var resultBaseURL = aEl.baseURI; |
83 |
|
var output = document.getElementById ('output-base-url'); |
84 |
|
output.innerHTML = ''; |
85 |
|
if (typeof (resultBaseURL) == 'undefined') { |
86 |
|
output.innerHTML = '(<code>undefined</code>)'; |
87 |
|
} else if (resultBaseURL === null) { |
88 |
|
output.innerHTML = '(<code>null</code>)'; |
89 |
|
} else if (resultBaseURL === '') { |
90 |
|
output.innerHTML = '($B6uJ8;zNs(B)'; |
91 |
|
} else { |
92 |
|
output.innerHTML = '<code>' + htescape2 ('' + resultBaseURL) + |
93 |
|
'</code> of type <code>' + htescape (typeof (resultBaseURL)) + '</code>'; |
94 |
|
} |
95 |
} // realUpdate |
} // realUpdate |
96 |
|
|
97 |
window.onload = function () { |
window.onload = function () { |
123 |
<dl> |
<dl> |
124 |
<dt>$B7k2L(B (<code>base href</code> $B$H(B <code>HTMLAnchorElement.href</code> |
<dt>$B7k2L(B (<code>base href</code> $B$H(B <code>HTMLAnchorElement.href</code> |
125 |
$B$r;HMQ(B): |
$B$r;HMQ(B): |
126 |
<dd><output></output> |
<dd><output id=output-url></output> |
127 |
|
<dt>$B<B8z4pDl(B URL (<code>Node.baseURI</code> $B$K$h$k(B) |
128 |
|
<dd><output id=output-base-url></output> |
129 |
</dl> |
</dl> |
130 |
|
|
131 |
<iframe></iframe> |
<iframe></iframe> |