Bug Tracker

Modify

Ticket #12084 (closed bug: invalid)

Opened 11 months ago

Last modified 11 months ago

`invalid` event not fired when delegated

Reported by: celtric@… Owned by: celtric@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

 Demo jsFiddle

I don't know if it's a bug or the intended behaviour, but it sure would be very handy to have this functionality so we don't have to track every DOM manipulation for potential form insertions.

Change History

comment:1 Changed 11 months ago by dmethvin

  • Owner set to celtric@…
  • Status changed from new to pending

It doesn't work, at least in Chrome 20, with or without jQuery:

 http://jsfiddle.net/wcVua/6/

The invalid event is not bubbling.

Can you point me to the current standard? The w3c site says WebForms2 has been superceded by HTML5, which says nothing about this event.

 http://www.w3.org/TR/web-forms-2/

 http://www.w3.org/TR/html5/common-input-element-apis.html#common-event-behaviors

comment:2 Changed 11 months ago by anonymous

I haven't been able find information about it either. The closest thing I've found it's the  XForms invalid event which does indeed bubble. I wonder why they decided to disable it in HTML5.

I guess this ticket should be closed, as the problem is not about jQuery anymore.

Thank you for your comment!

comment:3 Changed 11 months ago by dmethvin

  • Status changed from pending to closed
  • Resolution set to invalid

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.