edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Kevin Carhart <kevin@carhart.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] contentWindow - transcript corrected
Date: Mon, 4 Sep 2017 19:22:44 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LRH.2.03.1709041920020.28685@carhart.net> (raw)



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}


                 reply	other threads:[~2017-09-05  2:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LRH.2.03.1709041920020.28685@carhart.net \
    --to=kevin@carhart.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).