OpenLayers OpenLayers
Show
Ignore:
Timestamp:
06/25/08 16:40:44 (2 months ago)
Author:
tschaub
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/run-tests.html

    r6341 r7452  
    438438        Test.AnotherWay._g_html_eq_span.innerHTML=node.outerHTML; 
    439439    }else { 
    440         Test.AnotherWay._g_html_eq_span.appendChild( node.cloneNode( true ) ); 
     440            var clone = node.cloneNode(true); 
     441            var node = Test.AnotherWay._g_html_eq_span; 
     442            if(node.ownerDocument && node.ownerDocument.importNode) { 
     443                if(node.ownerDocument != clone.ownerDocument) { 
     444                    clone = node.ownerDocument.importNode(clone, true); 
     445                } 
     446            } 
     447            node.appendChild(clone); 
    441448    } 
    442449    return Test.AnotherWay._g_html_eq_span.innerHTML;