tor-browser

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

test_bug839371.html (1082B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=839371
      5 -->
      6 <head>
      7  <title>Test for Bug 839371</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script type="application/javascript" 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=839371">Mozilla Bug 839371</a>
     14 <p id="display"></p>
     15 <div id="content" style="display: none">
     16 
     17 <div itemscope>
     18  <data id="d1" itemprop="product-id" value="9678AOU879">The Instigator 2000</data>
     19 </div>
     20 
     21 </div>
     22 <pre id="test">
     23 <script type="application/javascript">
     24 
     25 /** Test for Bug 839371 */
     26 
     27 var d1 = document.getElementById("d1"),
     28    d2 = document.createElement("data");
     29 
     30 // .value IDL
     31 is(d1.value, "9678AOU879", "value property reflects content attribute");
     32 d1.value = "123";
     33 is(d1.value, "123", "value property can be set via setter");
     34 
     35 // .value reflects value attribute
     36 reflectString({
     37  element: d2,
     38  attribute: "value"
     39 });
     40 
     41 </script>
     42 </pre>
     43 </body>
     44 </html>