Opened 14 years ago

Closed 14 years ago

#3370 closed defect (fixed)

DnD: problem with form elements

Reported by: Eugene Lazutkin Owned by: Eugene Lazutkin
Priority: high Milestone: 0.9beta
Component: DnD Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Eugene Lazutkin)

From forums:

I have a form in ContentPane and my browser is Firefox I've defined the form element to be a dojo.dnd.Source with attributes {isSource: false, accept: ["myType"]} . When I move the mouse over the form, the animation for drop target launches alright. If I move the mouse pointer over any of the input elements (there are both plain HTML inputs and dojo widgets), the web browser gives this error: [Exception... "'Permission denied to get property HTMLDivElement.parentNode' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

I tested a bit, and it seems that only type="text" and input elements fire this exception, and the exception launches twice (when mouse enters and when it leaves the input area). The buttons, selects (non-dojo) and the dojo widget _Calendar are ok. This error happens also if I define the table element inside the form as Source.


Change History (4)

comment:1 Changed 14 years ago by Eugene Lazutkin

Status: newassigned

comment:2 Changed 14 years ago by Eugene Lazutkin

Description: modified (diff)

comment:3 Changed 14 years ago by Eugene Lazutkin

It looks like a FF-specific problem. Apparently FF creates some anonymous DIVs for input type=text, textarea, and similar controls, which cannot be examined from JS.

comment:4 Changed 14 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed

(In [9402]) Added a try guard against some FF-related quirks. See the ticket for details. Added a test for this kind of problem. Fixes #3370.

Note: See TracTickets for help on using tickets.