tor-browser

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

test_bug787134.html (949B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=787134
      5 -->
      6 <head>
      7  <title>Test for Bug 787134</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script src="reflect.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11 </head>
     12 <body>
     13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=787134">Mozilla Bug 787134</a>
     14 <p id="display"></p>
     15 <p><a id="link-test1" href="example link">example link</a></p>
     16 <pre id="test">
     17 <script>
     18    var div = document.createElement('div');
     19    div.innerHTML = '<a href=#></a>';
     20    var a = div.firstChild;
     21    ok(a.matches(':link'), "Should match a link not in a document");
     22    is(div.querySelector(':link'), a, "Should find a link not in a document");
     23    a = document.querySelector('#link-test1');
     24    ok(a.matches(':link'), "Should match a link in a document with an invalid URL");
     25 </script>
     26 </pre>
     27 </body>
     28 </html>