Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing values of option elements in forms #162

Merged
merged 2 commits into from
May 30, 2018

Conversation

BehindTheMath
Copy link
Collaborator

  • Fix a bug where the value of <option> would not get sent if falsy

    According to the spec, the value attribute should be sent if it exists, even if it's falsy.

  • Don't send an <option> tag if it's disabled, even if it's selected.

Fixes #158.

@BehindTheMath BehindTheMath requested a review from robinnorth May 30, 2018 02:29
@robinnorth
Copy link
Collaborator

LGTM 👍

@BehindTheMath BehindTheMath merged commit 8abb21e into master May 30, 2018
@BehindTheMath BehindTheMath deleted the fix/form-option-element branch May 30, 2018 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants