Opened 12 years ago
Closed 12 years ago
#11367 closed bug (wontfix)
Custom events on form fail if it has an input with the same name
Reported by: | janis-grigaluns | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Example: http://jsfiddle.net/6WDsU/
Patch: https://github.com/janis-grigaluns/jquery/commit/31f4eb94c8bd6fc2acce341ce9b9d4aca0ddb233
Older jQuery versions are not affected
Also these tickets would be properly fixed by this: http://bugs.jquery.com/ticket/11125 http://bugs.jquery.com/ticket/10574
Note: See
TracTickets for help on using
tickets.
The easiest fix to this problem is to not use custom events with the same name as form element attribute values. In fact - when it comes to custom events, you should be namespacing them - which would avoid this issue entirely.