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

Do not mutate DOMDocument #175

Merged
merged 2 commits into from
Aug 1, 2018

Conversation

Zegnat
Copy link
Member

@Zegnat Zegnat commented May 27, 2018

Fixes #174. Thanks to @gRegorLove for confirming this behaviour and @kartikprabhu for thinking about it!

I wrote the test first, and it seems a simple clone is indeed enough to get it to pass.

A DOMDocument instance being passed to the parser should not have
changed after parsing. This could potentially trip-up further use of
the same DOMDocument instance.

See microformats#174.
@Zegnat Zegnat requested a review from gRegorLove May 27, 2018 10:19
Copy link
Member

@gRegorLove gRegorLove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@aaronpk aaronpk merged commit 3610bd6 into microformats:master Aug 1, 2018
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