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.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5500 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-12-18 17:06:09 +00:00
parent 8572258fd1
commit 5d4109a3ab

View File

@@ -81,9 +81,10 @@
var expected = text.replace(/<\?.*\?>/, '')
t.eq(expected, out,
"correctly writes an XML DOM doc");
var out = format.write(doc.firstChild);
t.eq(expected, out,
var out = format.write(
format.getElementsByTagNameNS(doc,
"http://namespace.openlayers.org","root")[0]);
t.eq(out, expected,
"correctly writes an XML DOM node");
}