rcaguirreg / geoxml3

Automatically exported from code.google.com/p/geoxml3
0 stars 0 forks source link

IE8:textContent is null or not an object #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. parse an XML file with an empty <tag></tag> as:
  <Placemark>
            <name><![CDATA[BI COSSATO SS242 - LOC. CASTELLENGO]]>
            </name>
        <description><![CDATA[]]>
        </description>
            <styleUrl>#pin_green</styleUrl>
            <Point>
                <coordinates>8.18619,45.53519,0</coordinates>
            </Point>
        </Placemark>
where <description> is empty
2. Run the script in IE8;
   the debugger stops in:
   geoXML3.nodeValue = function(node)
   at statement: return (node.innerText || node.text || 
node.textContent).trim();

error message=textContent is null or not an object
3. The script works ok in FireFox

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
WndowsXP
googlemaps V3
geoXML3.js downloaded at 2010, May 17th

additional information:
replacing: node.textContent.trim() by: node.textContent
the script works ok in IE8.

Original issue reported on code.google.com by osterman...@googlemail.com on 18 May 2010 at 7:22

GoogleCodeExporter commented 9 years ago
fixed in network_link branch.

Original comment by geocodezip on 22 Sep 2010 at 5:44

GoogleCodeExporter commented 9 years ago
IE9 works now, but still not OK in IE8

Original comment by siilu...@gmail.com on 7 Oct 2010 at 7:05

GoogleCodeExporter commented 9 years ago
got it to work in IE8 with this patch

Original comment by siilu...@gmail.com on 7 Oct 2010 at 7:15

Attachments: