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

Namespace declaration gets removed when using replaceNode #78

Open
waterkip opened this issue Jul 4, 2023 · 0 comments
Open

Namespace declaration gets removed when using replaceNode #78

waterkip opened this issue Jul 4, 2023 · 0 comments

Comments

@waterkip
Copy link

waterkip commented Jul 4, 2023

The following test case fails (see attached file).

We have a node that has the string representation of:

<saml:Assertion xmlns="foobar" xmlns:saml="foobar" ID="ID_af2d76cb-6e6b-4ad0-a1a0-ea85ee839dbc" IssueInstant="2022-03-27T12:06:56.740Z" Version="2.0">Some assertion data</saml:Assertion>

This gets changed when using replaceNode() to:

<saml:Assertion xmlns="foobar" ID="ID_af2d76cb-6e6b-4ad0-a1a0-ea85ee839dbc" IssueInstant="2022-03-27T12:06:56.740Z" Version="2.0">Some assertion data</saml:Assertion>

This causes some namespacing issues in our code because the namespace has been removed.

replace-node-bug.t.txt

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