summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/url-host-name-non-ascii.html
blob: 639b7bafdca9a2fc94221bd05ea84c9dab9b9543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<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>