Opened 12 years ago

Closed 12 years ago

Last modified 9 years ago

#5935 closed defect (fixed)

clicking submit button when not on form.Form causes error

Reported by: guest Owned by: Douglas Hays
Priority: high Milestone: 1.1
Component: Dijit - Form Version: 1.1b1
Keywords: Cc:
Blocked By: Blocking:

Description

Have an <input type="submit"> on a page that's not on a dijit.form.Form. Click the button and get a 'node.getAttribute is not a function' in FF, similar in IE. Fails because _onButtonClick walks up the parent chain and eventually hits the document.

<html> <head> <LINK REL="stylesheet" TYPE="text/css" HREF="../js/dojo-release-1.1b1/dijit/themes/tundra/tundra.css"> <LINK REL="stylesheet" TYPE="text/css" HREF="../js/dojo-release-1.1b1/dojo/resources/dojo.css">

<SCRIPT LANGUAGE="JAVASCRIPT" SRC="../js/dojo-release-1.1b1/dojo/dojo.js.uncompressed.js" djConfig="parseOnLoad: true">

</SCRIPT>

<script type="text/javascript"> dojo.require("dojo.parser"); dojo.require("dijit.form.Button");

</script> </head> <body class="tundra"> <input type="submit" dojoType="dijit.form.Button" > "Click" </input> </body> </html>

Change History (3)

comment:1 Changed 12 years ago by Douglas Hays

Milestone: 1.1
Owner: set to Douglas Hays

comment:2 Changed 12 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [12593]) Fixes #5935. Stop searching before getting to the HTMLDocument element.

comment:3 Changed 9 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.