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

Fix CData recognition #11443

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix CData recognition #11443

wants to merge 1 commit into from

Conversation

JanKrivanek
Copy link
Member

Fixes https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1980399/

Context

MSBuild has custom xml parsing logic that is trying to distinguish whether the element content should be treated as regular xml element content (XmlNode.InnerText) or whether we want to allow users to pass in the actual unescaped xml (XmlNode.InnerXml)

The second option feels as not very good choice (allowing to specify xml recognized sequences within xml script, without properly escaping them) - but since it is already preexisting behavior, let's keep it.

The recgnition of CData section was inefficient and defective - not allowing leading whitespaces - so I've fixed at least that one

Changes Made

CData recognition now skips the leading whitespaces.

Testing

Manual testing - loaded the repro project from the case into VS with and without fix and verified this is fixing the issue

@JanKrivanek JanKrivanek enabled auto-merge (squash) February 21, 2025 12:38
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

Successfully merging this pull request may close these issues.

2 participants