Source code

Revision control

Copy as Markdown

Other Tools

<?xml version="1.0"?>
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>