hendriksaragih / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

< doesnt work in CDATA'ed Description tag. #196

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Paste the following KML into Google Earth 

        <Placemark> 
                <description><![CDATA[<br>X - X ( &lt; Y) ]]></description> 
                <Point> 
                        <coordinates>-114.21422,52.694878,50</coordinates> 
                </Point> 
        </Placemark> 

2. Double click the placenark to open description balloon. 

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

A < to be shown in the description. The desription cuts off (the Y... is 
missing). Having &lt; in a CDATA 
block should render like it does in HTML. 

Known Workaround: use the numberic entity instead. 

What API and/or application versions are you using?

GE 4.3.7284.3916 (Standalone)

Which operating systems and browsers are affected?

on XP - havn't tried others myself. 

Please provide any additional information (code snippets/links) below.

Threads:
http://groups.google.com/group/kml-support-advanced/browse_thread/thread/ff08d33
61d1d646f#

http://groups.google.com/group/kml-support-getting-
started/browse_thread/thread/611ed70e65674b9e/03df9267708566b4?lnk=st&q=lt#03df9
267708566b4

Original issue reported on code.google.com by BarryBHu...@gmail.com on 1 Oct 2008 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by api.roman.public@gmail.com on 1 Oct 2008 at 9:23

GoogleCodeExporter commented 9 years ago

Original comment by api.roman.public@gmail.com on 2 Dec 2008 at 10:50

GoogleCodeExporter commented 9 years ago
I'm not able to reproduce this in linux 5.0.11733.9347 using the KML in the 
original 
report but do get a bug with

        <Placemark>
                <description><![CDATA[line 1<br>a<b>c]]></description>          
                <Point>
                        <coordinates>-114.21422,52.694878,50</coordinates> 
                </Point> 
        </Placemark>

because I expect to see the literal text

line 1
ac
but instead see c in bold. The work around of using a<b>c still fixes it.

Original comment by tom.brow...@gmail.com on 31 Jul 2009 at 10:53

Attachments: