tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

scroll-frag-non-utf8-encoded-document.html (765B)


      1 <!doctype html>
      2 <title>Fragment Navigation: fragment id should not be found in non UTF8 document</title>
      3 <meta name=timeout content=long>
      4 <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <body>
      8 <div></div>
      9 <div id="&#x586f" style="position:absolute; top:100px;"></div>
     10 <div style="height:200vh;"></div>
     11 <script>
     12 async_test(test => {
     13  assert_equals(document.characterSet, "GBK", "Document should be GBK encoded");
     14  assert_equals(location.hash, "", "Page must be loaded with no hash");
     15  location.hash = '%89g';
     16  test.step_timeout(() => {
     17    assert_equals( document.scrollingElement.scrollTop, 0 );
     18    test.done();
     19  }, 1);
     20 });
     21 </script>