getElementsByTagName problem in chrome and safari
Posted
by Ilian Iliev
on Stack Overflow
See other posts from Stack Overflow
or by Ilian Iliev
Published on 2010-02-05T14:45:55Z
Indexed on
2010/05/21
22:00 UTC
Read the original article
Hit count: 307
I`m parsing a Google Maps RSS with javascript and using the following code to get the point coordinates:
point_coords = items.getElementsByTagName('georss:point')
Unfortunately it works in FF but not in safari and chrome (still not tested in Opera and IE)
The XML looks like:
<item>
<guid isPermaLink="false">guidNo</guid>
<pubDate>Mon, 23 Mar 2009 20:16:41 +0000</pubDate>
<title>title text</title>
<description><![CDATA[text]]></description>
<author>UniCreditBulbank</author>
<georss:point>
42.732342 23.296659
</georss:point>
</item>
© Stack Overflow or respective owner