document.getAnonymousNodes(this)[0] this.label.style this.style.display if( this.style.display != val ) this.style.display= val; this.label.value if( this.label.value != val ) this.label.value= val; var strings= this.textContent.split(/\s+/g); if(!strings[0]) strings.shift(); if(!strings[strings.length-1 ]) strings.pop(); this.value= strings.join(' '); this.display= strings.length ? '' : 'none'; this.update() this.update()