Fixed the retrieval of the value of options

The DOM property should be used rather than getting the attribute
directly, to support properly elements which have a fallback behavior when
their value attribute is missing (option elements are using their text in
such case).
Merge pull request #106 from stof/fix_option_value

Fixed the retrieval of the value of options