My Javascript opens a child window with URL "childDocument.html".
It then attempts to reference the document object.
Thus the script is
childWin = open("childDocument.html", ...);
childWinDocument = childWin.document;
Now if I use FB to break execution just after opening the window, and
step through it, I get the proper reference to the document object. I
can get the 'body' property of document and look for a specific DOM
element by an 'id' attribute I am looking for.
But if I don't break with FB, and let script execution proceed at its
normal speed, what happens is that I get a 'null' on finding the DOM
element, because what happens is that URL is not "childDocument.html"
but instead "about:blank" and the baseURI value under the document
object is not "http://localhost/.../childDocument.html" but instead
"chrome://browser/content/browers.xul"
Is there an explanation for this?
--
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en.