maxatwork / form2js

Javascript library for collecting form data
http://maxatwork.github.com/form2js/
MIT License
640 stars 137 forks source link

Form fields named 'name' or 'id' break the form traversal. #43

Open jakefeasel opened 11 years ago

jakefeasel commented 11 years ago

This commit ensures that the property being checked is a string, rather than an object.

See this jsfiddle for demonstration of the problem: http://jsfiddle.net/KJyCq/

And this jsfiddle (identical except using my modified version), showing it working: http://jsfiddle.net/KJyCq/1/