We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Source code using in instead of Object.hasOwnProperty:
in
Object.hasOwnProperty
xmldom/lib/sax.js
Lines 68 to 69 in 40745c6
import { DOMParser, XMLSerializer } from '@xmldom/xmldom'; const source = `<xml>&hasOwnProperty; &__proto__; &constructor;</xml>`; const doc = new DOMParser({ errorHandler: console.error }).parseFromString( source, 'text/xml' ); console.log( doc.documentElement.toString() );
leads to the output <xml>function hasOwnProperty() { [native code] </xml>
<xml>function hasOwnProperty() { [native code] </xml>
Try it: https://stackblitz.com/edit/js-xmldom370?devtoolsheight=33&file=index.js
The text was updated successfully, but these errors were encountered:
fix(sax): Only use own properties in entityMap
2f90b45
Fixes xmldom#370
Successfully merging a pull request may close this issue.
Source code using
in
instead ofObject.hasOwnProperty
:xmldom/lib/sax.js
Lines 68 to 69 in 40745c6
leads to the output
<xml>function hasOwnProperty() { [native code] </xml>
Try it: https://stackblitz.com/edit/js-xmldom370?devtoolsheight=33&file=index.js
The text was updated successfully, but these errors were encountered: