Skip to content

Fix CData recognition#11443

Merged
JanKrivanek merged 1 commit intomainfrom
proto/cdata-bugfix
Feb 25, 2025
Merged

Fix CData recognition#11443
JanKrivanek merged 1 commit intomainfrom
proto/cdata-bugfix

Conversation

@JanKrivanek
Copy link
Copy Markdown
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.

3 participants