Skip to content

Fix #75 - Bug with form submit handler not being attached in some cases - #99

Open
rmorrin wants to merge 1 commit into
jamesallardice:masterfrom
rmorrin:master
Open

Fix #75 - Bug with form submit handler not being attached in some cases#99
rmorrin wants to merge 1 commit into
jamesallardice:masterfrom
rmorrin:master

Conversation

@rmorrin

@rmorrin rmorrin commented Dec 3, 2015

Copy link
Copy Markdown

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
Copy Markdown

Works for me!

@rmorrin

rmorrin commented Mar 30, 2016

Copy link
Copy Markdown
Author

@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
Copy Markdown

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