for (var i = this.control.childNodes.length; i > 0; i--) {
this.control.removeChild(this.control.childNodes[i-1]);
}
var item = document.createElementNS(this.XHTML_NS, "option");
item.setAttribute("value", aValue);
if (aLabel) {
item.appendChild(aLabel.cloneNode(true));
}
if (aGroup) {
aGroup.appendChild(item);
} else {
this.control.appendChild(item);
}
return item;
var item = document.createElementNS(this.XHTML_NS, "optgroup");
if (aLabel) {
item.appendChild(aLabel.cloneNode(true));
}
if (aGroup) {
aGroup.appendChild(item);
} else {
this.control.appendChild(item);
}
return item;
aItem.selected = true;
aItem.selected = false;
return aItem.selected;
this.dispatchDOMUIEvent("DOMFocusIn");
this.updateInstanceData(false);
this.dispatchDOMUIEvent("DOMFocusOut");
this.updateInstanceData(true);