bring back removal of XML prolog.

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

View File

@@ -84,6 +84,8 @@
var out = format.write(
format.getElementsByTagNameNS(doc,
"http://namespace.openlayers.org","root")[0]);
out = out.replace(/[\r\n]/g, '');
out = out.replace( /<\?.*\?>/, '')
t.eq(out, expected,
"correctly writes an XML DOM node");
}