tor-browser

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

test_bug1057176.html (947B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1057176
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 1057176</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <script type="application/javascript">
     12 
     13  /** Test for Bug 1057176 */
     14  var doc = document.implementation.createDocument(null, null);
     15  var elem = doc.createElementNS("http://www.w3.org/1999/xhtml", "input");
     16  elem.pattern = "abc";
     17  elem.value = "def";
     18  ok(!elem.validity.valid, '"def" should not match the pattern "abc"');
     19  elem.value = "abc";
     20  ok(elem.validity.valid, '"abc" should match the pattern "abc"');
     21  </script>
     22 </head>
     23 <body>
     24 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1057176">Mozilla Bug 1057176</a>
     25 <p id="display"></p>
     26 <div id="content" style="display: none">
     27 
     28 </div>
     29 <pre id="test">
     30 </pre>
     31 </body>
     32 </html>