* [Edbrowse-dev] contentWindow - transcript corrected
@ 2017-09-05 2:22 Kevin Carhart
0 siblings, 0 replies; only message in thread
From: Kevin Carhart @ 2017-09-05 2:22 UTC (permalink / raw)
To: Edbrowse-dev
Sorry, I actually queried the wrong thing in my transcript. I asked for
x1.contentWindow.document, which doesn't make sense because x1 is the
object and x1[0] is the iframe, which I assigned to x2. The gist of what
I was demonstrating is still true when you query the correct thing.
x2.contentWindow.document returns undefined.
* b http://diedrescher.com {load any site with JS so that jdb is
available}
* jdb
* x1 = jQuery( "<iframe frameborder='0' width='0' height='0'/>")
[object Object]
* ok(x1)
0,length
* x2 = x1[0]
[object Object]
* ok(x2)
childNodes,style,className,class,nodeValue,attributes,ownerDocument,nodeName,nodeType,innerHTML,inner$HTML,contentDocument,content$Document,contentWindow,content$Window,parentNode
* x2.contentWindow
[object Object]
* ok(x2.contentWindow)
childNodes,style,className,class,nodeValue,attributes,ownerDocument,nodeName,parentNode,innerHTML,inner$HTML
* x2.nodeName
iframe
* x2.contentWindow.document
undefined
* .
bye
* b jsrt
22878
628
* jdb
* x1 = document.getElementsByTagName("iframe")
[object Object]
* x1
[object Object]
* ok(x1)
0
* x2 = x1[0]
[object Object]
* ok(x2)
childNodes,style,className,class,nodeValue,attributes,ownerDocument,src,nodeName,onload,nodeType,parentNode,innerHTML,inner$HTML,contentDocument,content$Document,contentWindow,content$Window
* x2.contentWindow.document
fetch frame http://www.edbrowse.org/jsfrm {it succeeds from here}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-05 2:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-05 2:22 [Edbrowse-dev] contentWindow - transcript corrected Kevin Carhart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).