-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 NRT annotations for XmlProcessingInstruction #73687
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @dotnet/area-system-xml Issue DetailsFixes #71862 When we originally annotated XML we avoided any product changes which resulted in some annotations being incorrect. @SteveDunn has found one of such inconsistencies when annotation S.S.Cryptography.Xml (#67198) and reported. This is fixing this inconsistency and matches behavior with spec and implementation. Per https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-pi:
cc: @SteveDunn
|
src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlProcessingInstruction.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM to me. Just one small nit.
src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlProcessingInstruction.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlProcessingInstruction.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlProcessingInstruction.cs
Outdated
Show resolved
Hide resolved
e4b0ae7
to
e60e59b
Compare
Fixes #71862
When we originally annotated XML we avoided any product changes which resulted in some annotations being incorrect.
@SteveDunn has found one of such inconsistencies when annotation S.S.Cryptography.Xml (#67198) and reported. This is fixing this inconsistency and matches behavior with spec and implementation.
Per https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-pi:
Data
/Value
(and whatever else it's called) are non-nullable and all setters are nullable - null will always translate to empty string since per spec it's equivalent and will make it most consistent with current implementationcc: @SteveDunn