[openlayers] 17/41: Add patch to improve GeoRSS parsing.

Bas Couwenberg sebastic at xs4all.nl
Fri Dec 26 02:41:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository openlayers.

commit ad2585af9a8fcbe909c1e33ee8c1cab4bead3b16
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Oct 9 12:52:00 2011 +0200

    Add patch to improve GeoRSS parsing.
---
 debian/patches/improved-GeoRSS-parsing.patch | 19 +++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/improved-GeoRSS-parsing.patch b/debian/patches/improved-GeoRSS-parsing.patch
new file mode 100644
index 0000000..909709f
--- /dev/null
+++ b/debian/patches/improved-GeoRSS-parsing.patch
@@ -0,0 +1,19 @@
+Description: Improve GeoRSS parsing
+ Fix gracefully handle some GeoRSS on IE8 and older.
+ Example: <http://kobenhavnsdelebiler.dk/kort/biler.rdf>
+Author: Jonas Smedegaard <dr at jones.dk>
+Last-Update: 2011-10-09
+
+--- a/lib/OpenLayers/Layer/GeoRSS.js
++++ b/lib/OpenLayers/Layer/GeoRSS.js
+@@ -145,7 +145,9 @@
+                 name = doc.getElementsByTagNameNS('*', 'title')[0].firstChild.nodeValue;
+             }
+             catch (e) {
+-                name = doc.getElementsByTagName('title')[0].firstChild.nodeValue;
++                try {
++                    name = doc.getElementsByTagName('title')[0].firstChild.nodeValue;
++                catch (e) {}
+             }
+             if (name) {
+                 this.setName(name);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3c9066c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+improved-GeoRSS-parsing.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/openlayers.git



More information about the Pkg-grass-devel mailing list