var eventNode = this; switch (this.getAttribute("eventnode")) { case "parent": eventNode = this.parentNode; break; case "window": eventNode = window; break; case "document": eventNode = document; break; } eventNode; this._eventNode.addEventListener("keypress", this._keyEventHandler, false); this._eventNode.removeEventListener("keypress", this._keyEventHandler, false); return this.getAttribute("label"); this.setAttribute("label", val); return val; return this.getAttribute("selected") == "true" ? true : false; this.setAttribute("selected", val); if (this.previousSibling) { if (val) this.previousSibling.setAttribute("beforeselected", val); else this.previousSibling.removeAttribute("beforeselected"); } if (this.nextSibling) { if (val) this.nextSibling.setAttribute("afterselected", val); else this.nextSibling.removeAttribute("afterselected"); } return val;