[Zope3-checkins]
SVN: Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/__resources__/commands.js
a slightly better way of getting page contents,
still far from perfect
Benji York
benji at zope.com
Tue Aug 1 23:23:50 EDT 2006
Log message for revision 69333:
a slightly better way of getting page contents, still far from perfect
Changed:
U Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/__resources__/commands.js
-=-
Modified: Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/__resources__/commands.js
===================================================================
--- Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/__resources__/commands.js 2006-08-01 19:49:56 UTC (rev 69332)
+++ Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/__resources__/commands.js 2006-08-02 03:23:49 UTC (rev 69333)
@@ -15,7 +15,12 @@
}
function _tb_getContents(info) {
- return top.frames[0].document.documentElement.innerHTML;
+ temp = document.createElement('div');
+ clone = top.frames[0].document.documentElement.cloneNode(true);
+ temp.appendChild(clone);
+ contents=temp.innerHTML;
+ temp.innerHTML="";
+ return contents;
}
function _tb_getUrl(info) {
More information about the Zope3-Checkins
mailing list