tor-browser

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

option-label.html (2151B)


      1 <!doctype html>
      2 <title>Option labels</title>
      3 <link rel="match" href="option-label-ref.html">
      4 <select size=12></select>
      5 <script>
      6 var select = document.getElementsByTagName("select")[0], option;
      7 
      8 option = document.createElement("option");
      9 select.appendChild(option);
     10 
     11 option = document.createElement("option");
     12 option.setAttribute("label", "")
     13 select.appendChild(option);
     14 
     15 option = document.createElement("option");
     16 option.setAttribute("label", "label")
     17 select.appendChild(option);
     18 
     19 option = document.createElement("option");
     20 option.setAttributeNS("http://www.example.com/", "label", "label")
     21 select.appendChild(option);
     22 
     23 option = document.createElement("option");
     24 option.appendChild(document.createTextNode(" child "));
     25 select.appendChild(option);
     26 
     27 option = document.createElement("option");
     28 option.appendChild(document.createTextNode(" child "));
     29 option.setAttribute("label", "")
     30 select.appendChild(option);
     31 
     32 option = document.createElement("option");
     33 option.appendChild(document.createTextNode(" child "));
     34 option.setAttribute("label", "label")
     35 select.appendChild(option);
     36 
     37 option = document.createElement("option");
     38 option.appendChild(document.createTextNode(" child "));
     39 option.setAttributeNS("http://www.example.com/", "label", "label")
     40 select.appendChild(option);
     41 
     42 
     43 option = document.createElement("option");
     44 option.appendChild(document.createTextNode(" child "));
     45 option.appendChild(document.createTextNode(" node "));
     46 select.appendChild(option);
     47 
     48 option = document.createElement("option");
     49 option.appendChild(document.createTextNode(" child "));
     50 option.appendChild(document.createTextNode(" node "));
     51 option.setAttribute("label", "")
     52 select.appendChild(option);
     53 
     54 
     55 option = document.createElement("option");
     56 option.appendChild(document.createTextNode(" child "));
     57 option.appendChild(document.createTextNode(" node "));
     58 option.setAttribute("label", "label")
     59 select.appendChild(option);
     60 
     61 option = document.createElement("option");
     62 option.appendChild(document.createTextNode(" child "));
     63 option.appendChild(document.createTextNode(" node "));
     64 option.setAttributeNS("http://www.example.com/", "label", "label")
     65 select.appendChild(option);
     66 </script>