[Pkg-osm-commits] [SCM] openlayers branch, master, updated. debian/2.11+ds1-1-2-gb46ea35

Jonas Smedegaard dr at jones.dk
Sun Oct 9 10:53:03 UTC 2011


The following commit has been merged in the master branch:
commit ad2585af9a8fcbe909c1e33ee8c1cab4bead3b16
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Oct 9 12:52:00 2011 +0200

    Add patch to improve GeoRSS parsing.

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

-- 
JavaScript library for displaying map data in web browsers



More information about the Pkg-osm-commits mailing list