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

fix(sax): Restore ability to parse __prototype__ attributes #315

Merged
merged 3 commits into from Sep 1, 2021

Conversation

dsimpsonOMF
Copy link
Contributor

As noted in issue #252 some attributes conflict with prototype fields (such as an attribute constructor) thus we must remove the in operator and replace with Object.prototype.hasOwnProperty().

dsimpsonOMF and others added 2 commits August 31, 2021 23:08
As noted in issue xmldom#252 some attributes conflict with prototype fields (such as an attribute `constructor`) thus we must remove the `in` operator and replace with `Object.prototype.hasOwnProperty()`.
@karfau karfau added this to the 0.8.0 milestone Sep 1, 2021
Copy link
Member

@karfau karfau left a comment

Choose a reason for hiding this comment

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

Thank you @dsimpsonOMF

@karfau karfau changed the title fix: Prototype fields conflict with dom attributes fix(sax): Restore ability to parse __prototype__ attributes Sep 1, 2021
@karfau karfau merged commit 183fb48 into xmldom:master Sep 1, 2021
karfau pushed a commit that referenced this pull request Sep 1, 2021
Co-authored-by: Christian Bewernitz <coder@karfau.de>
(cherry picked from commit 183fb48)
@karfau
Copy link
Member

karfau commented Sep 1, 2021

was released as 0.7.4

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.

parse attribute "constructor" crash
2 participants