incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Zwaga <rol...@stackandheap.com>
Subject Does Falcon need to take CDATA sections into account when parsing <fx:string/>?
Date Sun, 28 Oct 2012 17:11:48 GMT
Hi there,

I've been taking my few first uncertain steps into grokking the Falcon
sources. I was looking at the MXMLStringNode tests and wanted to see if the
parser takes into account
CDATA sections in them.
So I added a test that set up an <fx:string/> node like this:

String code = "<fx:String><![CDATA[ ]]></fx:String>"; //The CDATA section
here contains a single space
IMXMLStringNode node = getMXMLStringNode(code);
assertThat("getValue", node.getValue(), is(" "));

Now, this test fails, because the node.getValue() returns null. IMHO, this
is incorrect behaviour, since CDATA sections should be parsed literally
without any assumptions or
postprocessing.

Does everyone agree on this? Thoughts please ;)

-- 
regards,
Roland

-- 
Roland Zwaga
Senior Consultant | Stack & Heap BVBA

+32 (0)486 16 12 62 | roland@stackandheap.com | http://www.stackandheap.com

http://zwaga.blogspot.com
http://www.springactionscript.org
http://www.as3commons.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message