src/Element/Select.php
public function setAttribute( $name, $value ) {
        if( strtolower( $name ) == 'value' ) {
            $this->setSelectedOption( $value );
        } else {
            parent::setAttribute( $name, $value );
        }
    }
public function setAttribute( $name, $value ) {
        if( strtolower( $name ) == 'value' ) {
            $this->setSelectedOption( $value );
        } else {
            parent::setAttribute( $name, $value );
        }
    }
public function setAttribute ( $ name , $ value ) { if ( strtolower ( $ name ) == 'value' ) { $ this -> setSelectedOption ( $ value ) ; } else { parent :: setAttribute ( $ name , $ value ) ; } }
Handles the value attribute. If the "value" attribute is set,
the option with the attribute's value is then selected.
@param $name the name of the attribute
@param $value the value of the attribute
Handles the value attribute . If the value attribute is set the option with the attribute s value is then selected .