skipWS has no effect on white-space inside CDATA
geert56 opened this issue · comments
The skipWS option has no effect on any leading and trailing white-space inside a CDATA construct.
Is this deliberate? "Regular" text nodes are affected by that option, as expected. CDATA is only an escape construct and could have been used judiciously by some XML generator. For all intents and purposes it might just as well be handled like any other text node. For consistency I'd like to suggest to also apply
skipWS to the contents of CDATA. (Or have yet another option flag for this sole purpose?)