tor-browser

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

test_bug742030.html (873B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=742030
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 742030</title>
      9  <script src="/tests/SimpleTest/SimpleTest.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=742030">Mozilla Bug 742030</a>
     14 <p id="display"></p>
     15 <div id="content" style="display: none">
     16  
     17 </div>
     18 <pre id="test">
     19 <script type="application/javascript">
     20 
     21 /** Test for Bug 742030 */
     22 const str = "  color:   #ff0000  ";
     23 var span = document.createElement("span");
     24 span.setAttribute("style", str);
     25 is(span.getAttribute("style"), str, "Should have set properly");
     26 var span2 = span.cloneNode(false);
     27 is(span2.getAttribute("style"), str, "Should have cloned properly");
     28 </script>
     29 </pre>
     30 </body>
     31 </html>