From 5d4109a3ab7ed22d928deee2b99e5b8d1b9dedcf Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 18 Dec 2007 17:06:09 +0000 Subject: [PATCH] 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 --- tests/Format/test_XML.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Format/test_XML.html b/tests/Format/test_XML.html index cd9775ce52..e81cbc79d8 100644 --- a/tests/Format/test_XML.html +++ b/tests/Format/test_XML.html @@ -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"); }