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 so disabled controls are totally ignored from built up object model #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcintyre321
Copy link

...put values, so shouldn't be included in results

#36

… input values, so shouldn't be included in results
@mcintyre321
Copy link
Author

Given a form containing

<input type="hidden" name="x" value="hello" />
<input type="hidden" name="x" value="hello" disabled="disabled" />

form2js will currently return a null value for x - disabled controls should be totally ignored and instead form2js should return {x:"hello"}

@lookfirst
Copy link
Contributor

Nice fix. I checked this into my fork.

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