diff --git a/tests/Format/GeoRSS.html b/tests/Format/GeoRSS.html index 5cea1ae627..6e82f058ab 100644 --- a/tests/Format/GeoRSS.html +++ b/tests/Format/GeoRSS.html @@ -80,7 +80,15 @@ var parser = new OpenLayers.Format.GeoRSS(); var items = parser.read(' '); t.eq(items.length, 1, "item created"); - t.eq(items[0].attributes.description, " foo", "description value is ok"); + + // when parsing a node composed of both spaces and a cdata section + // (e.g. IE8 ignores + // the leading white spaces, and reports that the node does not + // include a text node. For that reason, we need to trim the + // string value resulting from the parsing. + + var description = OpenLayers.String.trim(items[0].attributes.description); + t.eq(description, "foo", "description value is ok"); } var shell_start = '\n scribble\n http://featureserver.org/featureserver.cgi/scribble?format=atom\n FeatureServer\n';