« Return to Thread: Textarea + Context Menu + FF = Error in Firebug

Textarea + Context Menu + FF = Error in Firebug

by H.F. :: Rate this Message:

Reply to Author | View in Thread

Hi all,

Please help!

It shows the following error in FF when the mouse quits the context
menu and enters to the textarea.

Here is how I add the context menu to the textbox,

JavaScript Part
===================
var oContextMenu = new YAHOO.widget.ContextMenu("testContextMenu", {
trigger: "text1", itemdata: [{ text: 'dummy', value:true }] } );

oContextMenu.render(document.body);
===================

HTML Part
===================
<textarea id="text1" style="width: 335px; height:
100px;">Testing</textarea>
===================

Whenever the mouse leaves the context menu and points immediately to
the textbox, FireBug shows this error:

[Exception... "'Permission denied to get property
HTMLDivElement.nodeType' when calling method:
[nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

I suspect that this may be a bug in FF. However, I am also wondering
if it can be solved in the YUI level.

I am using FireFox 2.0.0.6 and Firebug 1.05.

Please advise. Thanks.

H.F.


 « Return to Thread: Textarea + Context Menu + FF = Error in Firebug