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

Clone attributes in shallowClone() #1202

Merged
merged 1 commit into from
May 12, 2019
Merged

Conversation

iansumm
Copy link

@iansumm iansumm commented Apr 6, 2019

Fix for issue #1201 .

When you shallow clone an element you would expect that modifying the attributes of the clone would have no effect on the original element but this is not the case. shallowClone() reuses the same Attributes object from the original element. We should be cloning the Attributes instead.

@tamervi
Copy link

tamervi commented May 3, 2019

+1 Issue still exists. Is this issue going to be fixed in the upcoming JSoup release?

@jhy jhy merged commit eaf876d into jhy:master May 12, 2019
@jhy
Copy link
Owner

jhy commented May 12, 2019

Thanks! merged

@iansumm iansumm deleted the clone_attributes branch March 3, 2023 03:14
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