Home | History | Annotate | Download | only in encoding
      1 <p>
      2     Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=17676">http://bugs.webkit.org/show_bug.cgi?id=17676</a>
      3     REGRESSION (r30240-r30267): href attribute values with non-ASCII characters in the host part do not work</i>.
      4 </p>
      5 <a id="anchor" href="http://w&#xe9;bkit.org/"></a>
      6 <div id="result"></div>
      7 <script>
      8     if (window.layoutTestController)
      9         layoutTestController.dumpAsText();
     10 
     11     var encodedURL = document.getElementById("anchor").href;
     12     document.getElementById("result").innerText = encodedURL == "http://xn--wbkit-bsa.org/" ? "PASS" : "FAIL: The encoded URL was '" + encodedURL + "'.";
     13 </script>
     14