Opened 15 years ago

Last modified 14 years ago

#2078 closed defect

dojo.event.connect() fails to connect to FireFox iframes in designMode — at Initial Version

Reported by: andrew Owned by: alex
Priority: high Milestone: 0.9
Component: Events Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

It appears that dojo.event.connect() is never calling down to the DOM2/DOM3 method "addEventListener", and as a result, does not correctly subscribe to events in certain cases.

The one case that I know of is the following. In FireFox? 1.5 (and 2.0, I think), create an iframe:

iframe.contentWindow.document.designMode = "on"; dojo.event.connect( iframe.contentWindow, "onmousedown", function(){alert("hi!");} );

Clicking anywhere on that iframe should now cause an alert to pop up. It doesn't.

Note that since the Dojo RichText? widget is based on an iframe set up in exactly this way, this makes it impossible to do dynamic things with RichText? widget content (for example, a spellcheck).

Change History (0)

Note: See TracTickets for help on using tickets.