blob: b70fe7b00a2f3b26a85ab31f2d673701dddd87d4 [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.testRunner)
testRunner.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>