OpenLayers OpenLayers

Changeset 5500

Show
Ignore:
Timestamp:
12/18/07 12:06:09 (1 year ago)
Author:
crschmidt
Message:

Because IE serializes the processing instruction, we can't just grab the
firstChild, we have to actually do a getElementsByTagNameNS to be
cross-browser friendly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/Format/test_XML.html

    r5499 r5500  
    8282        t.eq(expected, out, 
    8383             "correctly writes an XML DOM doc"); 
    84  
    85         var out = format.write(doc.firstChild); 
    86         t.eq(expected, out, 
     84        var out = format.write( 
     85          format.getElementsByTagNameNS(doc, 
     86           "http://namespace.openlayers.org","root")[0]); 
     87        t.eq(out, expected, 
    8788             "correctly writes an XML DOM node"); 
    8889    }