blob: 940166dbb279ace9387d43559634cec8c863a510 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?xml version="1.0"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:nc="http://home.netscape.com/NC-rdf#"
title="insertBefore - Weirdness"
onload="var atab = document.createXULElement('tab'); atab.setAttribute('label','new'); let tabs = document.getElementById('tabs-id'); tabs.insertBefore(atab,tabs.allTabs[tabs.allTabs.length-1]);" >
<tabbox>
<tabs id="tabs-id">
<tab label="foo" />
<tab label="bar" />
</tabs>
<tabpanels>
<tabpanel>
<vbox>
<label value="foo"/>
</vbox>
</tabpanel>
<tabpanel>
<vbox>
<label value="bar"/>
</vbox>
</tabpanel>
</tabpanels>
</tabbox>
</window>
|