Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skipWS has no effect on white-space inside CDATA #80

Open
geert56 opened this issue Jun 3, 2022 · 0 comments
Open

skipWS has no effect on white-space inside CDATA #80

geert56 opened this issue Jun 3, 2022 · 0 comments

Comments

@geert56
Copy link

geert56 commented Jun 3, 2022

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?)

@geert56 geert56 changed the title skipWS has no effect of white-space inside CDATA skipWS has no effect on white-space inside CDATA Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant