Opened 14 years ago

Closed 14 years ago

Last modified 11 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:


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 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 14 years ago by Douglas Hays

Milestone: 1.1
Owner: set to Douglas Hays

comment:2 Changed 14 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

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

comment:3 Changed 11 years ago by bill

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