summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/url-host-name-non-ascii.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/encoding/url-host-name-non-ascii.html')
-rw-r--r--LayoutTests/fast/encoding/url-host-name-non-ascii.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/url-host-name-non-ascii.html b/LayoutTests/fast/encoding/url-host-name-non-ascii.html
new file mode 100644
index 0000000..639b7ba
--- /dev/null
+++ b/LayoutTests/fast/encoding/url-host-name-non-ascii.html
@@ -0,0 +1,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>