Patching Test.AnotherWay to use importNode in html_eq. r=crschmidt (closes #1376)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-06-25 20:40:44 +00:00
parent 8773d98834
commit 2d86212155

View File

@@ -437,7 +437,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;
}