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(/<\?.*\?>/, '')
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user