[Laszlo-dev] For Review: Change 20090418-bargull-EOc Summary: make LzXMLParser more consistent across runtimes

André Bargull andre.bargull at udo.edu
Sat Apr 18 07:47:54 PDT 2009


Change 20090418-bargull-EOc by bargull at dell--p4--2-53 on 2009-04-18 15:58:16
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: make LzXMLParser more consistent across runtimes

New Features:

Bugs Fixed: LPP-8066 (LzXMLParser cross-runtime inconsistencies), 
LPP-7461 (Issues in test/lfc/data/alldata.lzx)

Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
LzXMLParser (swf8):
- respect function contract: return `null` when xml-string doesn't 
contain a single root-element or just a simple string
- return firstChild for compatibility with dhtml and swf9
LzXMLTranslator (swf8):
- LzXMLParser.parseXML returns now firstChild of xml-object, need to 
compensate here for backward compatibility (see LPP-7537)
LzXMLParser (swf9):
- respect function contract: return `null` when xml-string is a simple 
string
LzDataElement:
- handle null-return from LzXMLParser.parseXML
- only wrap LzXMLParser.parseXML in try..catch

xmlparser.lzx:
- add tests from LPP-8066

datapointer.lzx and datapointerServerless.lzx:
- change test to match new contract of lz.datapointer#deleteNode()


Tests:
alldata x (swf8, swf9, dhtml)

Files:
M test/lfc/data/xmlparser.lzx
M test/lfc/data/datapointer.lzx
M test/lfc/data/datapointerServerless.lzx
M WEB-INF/lps/lfc/kernel/swf/LzXMLParser.as
M WEB-INF/lps/lfc/kernel/swf/LzXMLTranslator.as
M WEB-INF/lps/lfc/kernel/swf9/LzXMLParser.as
M WEB-INF/lps/lfc/data/LzDataElement.lzs

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20090418-bargull-EOc.tar



More information about the Laszlo-dev mailing list