Manual talk:HTMLForm Tutorial 3

htmlform-select-badoption errors
If you're building a select dropdown and you're getting htmlform-select-badoption errors, try adding a default value. This array was throwing errors:

Copying the array from the tutorial did not throw errors:

Note that their structures are the same; one is just a bit more complex than the other.

Making an explicit default got rid of the error message: