jquery-pjax icon indicating copy to clipboard operation
jquery-pjax copied to clipboard

bug if form input "name" is same as form attribute

Open scottwoodall opened this issue 12 years ago • 1 comments

If you have a form input whose "name" attribute is the same as one of the properties being created in the defaults object then the input object is assigned instead of the form attribute.

Example:

<form action="/foo/bar">
   <input name="action">
</form>

defaults.url = [object%20HTMLInputElement]

scottwoodall avatar Nov 25 '13 01:11 scottwoodall

a unit test would be great

staabm avatar Nov 28 '13 15:11 staabm