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