diff --git a/tests/Format/test_XML.html b/tests/Format/test_XML.html
index 80a5419fce..cd9775ce52 100644
--- a/tests/Format/test_XML.html
+++ b/tests/Format/test_XML.html
@@ -83,9 +83,6 @@
"correctly writes an XML DOM doc");
var out = format.write(doc.firstChild);
- out = out.replace(/[\r\n]/g, '');
- out = out.replace( /<\?.*\?>/, '')
- var expected = text.replace(/<\?.*\?>/, '')
t.eq(expected, out,
"correctly writes an XML DOM node");
}