diff --git a/tests/auto-tests.html b/tests/auto-tests.html index 9d2a30cbce..4aaaa0d68c 100644 --- a/tests/auto-tests.html +++ b/tests/auto-tests.html @@ -34,7 +34,7 @@ body { height: 98%; font: normal normal 10pt sans-serif } #col1 { float: left; width: 27em; margin: 0 0 0 1em; overflow: visible; } #col2 { position: relative; height: 98%; margin: 0 0.5em 0 28em; } #col1_header { margin-top: 0.5em; } -#scroller { height: 550px; overflow: auto;} +#scroller { height: 400px; overflow: auto;} #testtable { margin: 0 0 2em 0; width: 97%; } #run_buttons { margin-bottom: 4em; } @@ -470,7 +470,14 @@ Test.AnotherWay._html_eq_node_to_string=function( node ) { if( node.outerHTML!=null ) { Test.AnotherWay._g_html_eq_span.innerHTML=node.outerHTML; }else { - Test.AnotherWay._g_html_eq_span.appendChild( node.cloneNode( true ) ); + var clone = node.cloneNode(true); + var node = Test.AnotherWay._g_html_eq_span; + if(node.ownerDocument && node.ownerDocument.importNode) { + if(node.ownerDocument != clone.ownerDocument) { + clone = node.ownerDocument.importNode(clone, true); + } + } + node.appendChild(clone); } return Test.AnotherWay._g_html_eq_span.innerHTML; } @@ -2334,6 +2341,7 @@ onload=function() // --> +