[Greasemonkey] Re: Gm Bug in Firefox 1.5.0.4

Jeremy Dunck jdunck at gmail.com
Wed Jun 7 08:04:36 EDT 2006


On 6/7/06, Bill Donnelly <donnelly at snowcrest.net> wrote:
> I'm just kind of hoping you will get an "Oh! That might be the problem"
> reaction from the ideas I'm throwing out.

Perhaps the DOMContentLoaded event just isn't happening for JS-filled
windows.  Testing would say for sure.  ;-)

But what Aaron meant is that instead of relying on injecting into the
new JS-created window, why not have the original script do something
more like this in the creating page:

other = window.open();
other.newNode = function(t) { return other.document.createElement(t)}
other.newText = function(t) {return other.document.createTextNode(t)}

oh1=other.newNode('h1')
other.document.body.appendChild(oh1);
oh1.appendChild(other.newText('hi'))


More information about the Greasemonkey mailing list