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 #75 - Bug with form submit handler not being attached in some cases #99

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

Conversation

rmorrin
Copy link

@rmorrin rmorrin commented Dec 3, 2015

According to MDN, the form property of an HTMLInputElement may be the id of any form in the current document or the containing form HTMLFormElement itself.

The second case was previously not accounted for, only adding the submit handler when a string was present. This was breaking functionality on IE9.

All credit for this goes to @littletijn: http://git.io/vRYQX only submitting this myself as they have not responded to the issue, and (s)he doesn't look to be active.

Fixes #75

According to the HTML5 spec, the 'form' property of an HTMLInputElement
may be any id of a form in the current document *or* the containing form
HTMLFormElement itself. The second case was previously not accounted for,
only adding the submit handler when a string was present. This was
breaking functionality on IE9.

Credit for this goes to @littletijn: http://git.io/vRYQX
@jayfresh
Copy link

Works for me!

@rmorrin
Copy link
Author

rmorrin commented Mar 30, 2016

@littletijn No problem! Thanks for finding the issue. 😃

@jamesallardice Is there anything preventing this from being merged? We've been using this 'patched' version internally across a few sites without any ill-effect.

DragorWW added a commit to DragorWW/Placeholders.js that referenced this pull request Sep 27, 2016
- add tast to build
- add code from commit  jamesallardice#99
@DragorWW
Copy link

I rebuild your code and update grunt to v 1

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.

3 participants