tor-browser

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

538308-1.xhtml (909B)


      1 <?xml version="1.0"?>
      2 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      3        xmlns:html="http://www.w3.org/1999/xhtml"
      4        onload="run()">
      5 
      6    <tree id="tr" flex="1">
      7        <treecols>
      8            <treecol/>
      9        </treecols>
     10        <treechildren>
     11            <html:optgroup id="group">
     12                <html:option id="victim" label="never see this"/>
     13            </html:optgroup>
     14        </treechildren>
     15    </tree>
     16 
     17    <script type="text/javascript"><![CDATA[
     18    function run() {
     19        group = document.getElementById("group");
     20        tc = document.createXULElement("treechildren");
     21        group.appendChild(tc);
     22 
     23        v = document.getElementById("victim");
     24        v.remove();
     25        v = null;
     26 
     27        tree = document.getElementById("tr");
     28        col = tree.columns[0];
     29        alert(tree.view.getItemAtIndex(1, col)); 
     30    }
     31    ]]></script>
     32 </window>