Skip to content

Optional value attribute on select's options

Choose a tag to compare

@g105b g105b released this 08 Jul 15:08
· 114 commits to master since this release
3d70707

If a select element has option children that do not have the value attribute, getting or setting the value property would previously fail due to a TypeError. The expected behaviour is to fall back to the value of innerText, which is how it is treated in this release. Tests have been updated to check this behaviour.