I think there is a divergence based on whether the iframe is coming from
html or created within js. If I use the iframe in jsrt, it works. But if
I play along with how an iframe is created in the jquery.js code that I
referenced, I think the contentWindow is not a window and doesn't have
.document. Is it a goof that the line in jsNode uses t->jv? Or not! It
could be deliberate and a part of the whole. I can't tell. Here's my
transcript that shows not working, followed by working. Asterisks added
to offset my input from the responses.
* b {any website with JS and jquery}
...
* 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
* x1.contentWindow.document
jdb line 1: TypeError: cannot read property 'document' of 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}
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev