blob: 639b7bafdca9a2fc94221bd05ea84c9dab9b9543 [file] [log] [blame]
<p>
Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=17676">http://bugs.webkit.org/show_bug.cgi?id=17676</a>
REGRESSION (r30240-r30267): href attribute values with non-ASCII characters in the host part do not work</i>.
</p>
<a id="anchor" href="http://w&#xe9;bkit.org/"></a>
<div id="result"></div>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
var encodedURL = document.getElementById("anchor").href;
document.getElementById("result").innerText = encodedURL == "http://xn--wbkit-bsa.org/" ? "PASS" : "FAIL: The encoded URL was '" + encodedURL + "'.";
</script>