| <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é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> |