Skip to main content
Participant
July 20, 2010
Question

Problem: FlashPlayer 10.1 XML and HTML-Entity Rendering problem

  • July 20, 2010
  • 1 reply
  • 1217 views

Hi,


I have some problems using

childNode[0].nodeValue

and HTML Entities since updating my FlashPlayer from version 10.0 to 10.1

First some information about my system:

  • FlashPlayer: WIN 10,1,53,64
  • OS: WinXP (32bit)
  • Browser: Firefox 3.6.6; IE 7.0.5730.13

I am handling XML data which contains for example some HTML Entities like "<" or ">". A XML-Parser reads the nodeValue and puts the text into a HTML enabled textfield. Now FlashPlayer Version 10.1 does not display the text after "&lt".


For example the following text in XML:

<![CDATA[<ul><li>pressure &lt; 250bar</li>

is rendered as "pressure". Debugging the application shows, that after getting the Text with

childNode[0].nodeValue

returns "pressure < 25bar" so HTML textfield interprets the "<" as a HTML Tag.

Possible Workaround: Using

<![CDATA[<ul><li>pressure %30C; 250bar</li>

and replacing it after reading the nodeValue with "&lt;" solves the problem.

Ist there any other solution without changing my XML Contents? Can I tell Flash or my XMLParser that HTML Tags must not be replaced?

Thank's for any idea and help.

    This topic has been closed for replies.

    1 reply

    Participant
    July 21, 2010

    I am delete this question

    The problem is not in the TextField, just callback function receives already was decoded string.
    On the input "flash player" was deleted CDATA tag and was decoded escaping symbols

    I have the same problem


    After update from 10,0 to 10,1 htmlText cropped on the symbols of the type "&lt;" or "&gt;"


    Assigned: Are you a &lt;b&gt;Man&lt;/b&gt; or what?


    It was (10.0): Are you a Man or what?
    Now
    (10.1): Are you a


    OS: Win Vista Business SP1

    Browser: IE


    ???

    Participant
    July 22, 2010

    Investigate the problem, but did not become easier.

    When calling external function used method "<invoke name="function" returntype="xml"><arguments><string>.....</string></arguments></invoke>" flashplayer remove from string value tag "CDATA".

    This is as in 10.0 player so and in 10.1.

    But after install 10.1 version string exposed decoding. All escape symbols convert to real char data.

    Example:

    "and WELL-FORMED&lt;/b&gt;&lt;/font&gt; HTML"

    =>

    "and WELL-FORMED</b></font> HTML"

    So as CDATA deleted is abnormal decoding XML data in the AS code.

    Who ever can help overcome this unnecessary effect?