]> git.saurik.com Git - wxWidgets.git/commit - tests/xml/xmltest.cpp
Don't append text following CDATA section to its node itself.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Aug 2009 21:42:27 +0000 (21:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Aug 2009 21:42:27 +0000 (21:42 +0000)
commita6cf6bcfb46c8ba3ef5d8daef8ff1e60caaf41ac
treef31371e68657e57df378993fc5ce429813b81db6
parent84e0e5265dc876c4a6f541211ab2a80d36704201
Don't append text following CDATA section to its node itself.

Reset wxXmlParsingContext::lastAsText flag when CDATA section ends to avoid
appending the text following it to its node. Instead new text nodes should be
created for it.

Also update the unit test to not work around the bug any more.

Closes #10552.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/xml/xml.cpp
tests/xml/xmltest.cpp