|
@@ -207,7 +207,7 @@ class ChoiceFormField extends FormField
|
|
|
|
|
|
$found = false;
|
|
|
foreach ($this->xpath->query('descendant::option', $this->node) as $option) {
|
|
|
- $this->options[] = $option->getAttribute('value');
|
|
|
+ $this->options[] = $option->hasAttribute('value') ? $option->getAttribute('value') : $option->nodeValue;
|
|
|
|
|
|
if ($option->getAttribute('selected')) {
|
|
|
$found = true;
|