Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#7330 closed defect (fixed)

dojo.NodeList doesn't support .onsubmit

Reported by: dante Owned by: dylan
Priority: high Milestone: 1.2
Component: General Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

... in the list of sugar functions created with "on" added, "submit" is missing, preventing something like:

dojo.query("#myForm").onsubmit(function(e){ e.preventDefault(); })

simply adding "submit" to the list resolves this.

Attachments (1)

sugar.patch (484 bytes) - added by dante 11 years ago.
adds onerror and onload (for images)

Download all attachments as: .zip

Change History (6)

comment:1 Changed 11 years ago by dylan

Milestone: tbd1.2
Owner: changed from anonymous to dylan
Status: newassigned

comment:2 Changed 11 years ago by dylan

Resolution: fixed
Status: assignedclosed

fixed in [14784]

Changed 11 years ago by dante

Attachment: sugar.patch added

adds onerror and onload (for images)

comment:3 Changed 11 years ago by dante

Resolution: fixed
Status: closedreopened

added a patch to support onerror and onload (mostly for images, works with body (after images and whatnot), and embed, but unreliably. If there is interest in these, will create unit tests, otherwise please re-close.

comment:4 Changed 11 years ago by dylan

Resolution: fixed
Status: reopenedclosed

(In [14837]) add load and error syntactic sugar for NodeList?, fixes #7330

comment:5 Changed 11 years ago by James Burke

(In [15398]) Refs #7330. My OCD compels me to alphabetize these names.

Note: See TracTickets for help on using tickets.