Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.6
-
None
Description
DOMCategory.test() fetches nothing if data in a node is wrapped in CDATA section.
E.g.:
<root> <testText>text works</testText> <testCDATA><![CDATA[cdata works]]></testCDATA> </root> .... root.testCDATA.text() == ""
It seems adding a check for CDATA_SECTION_NODE type should be sufficient.
Please find attached test and proposed fix.