Hello Arne,
Thank you for the reply, I have already tried jquery clone(true)
method but without success.
In the inspector, I can see that the div element that was cloned and
injected in the popup has a click event (in the Event Listeners view)
but when I click it, nothing happens.
BTW, where can I find the onClick core definition (console.log() in
the example below) in the event listener view?
$('div').click(function(){console.log("happy click);});
Because in: Event Listeners -> click -> div -> node -> onclick I have
null
Regarding using adoptNode (or importNode). I have an error in the
console each time I use it:
> document.adoptNode(bgPage.document.getElementById("div"), true);
Uncaught Error: NOT_SUPPORTED_ERR: DOM Exception 9
I'm using Chrome 9.0.597.19 beta on debian lenny (5.0.7)
Is someone else having problem with adoptNode?
Hope someone could explain what I am missing.
> It's probably still slow though - why not use adoptNode:
https://developer.mozilla.org/en/DOM/document.adoptNode? It looks like
> > To post to this group, send email to
chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> >
chromium-extensions+unsubscr...@chromium.org<
chromium-extensions%2Bunsubscr...@chromium.org>
> > .