@xmldom/xmldom 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 0.7.4
8
+
9
+ [Commits](https://github.com/xmldom/xmldom/compare/0.7.3...0.7.4)
10
+
11
+ ### Fixes:
12
+
13
+ - Restore ability to parse `__prototype__` attributes [`#315`](https://github.com/xmldom/xmldom/pull/315)
14
+ Thank you [@dsimsonOMF](https://github.com/dsimsonOMF)
15
+
7
16
  ## 0.7.3
8
17
 
9
18
  [Commits](https://github.com/xmldom/xmldom/compare/0.7.2...0.7.3)
package/lib/sax.js CHANGED
@@ -230,7 +230,9 @@ function parseElementStartPart(source,start,el,currentNSMap,entityReplacer,error
230
230
  * @param {number} startIndex
231
231
  */
232
232
  function addAttribute(qname, value, startIndex) {
233
- if (qname in el.attributeNames) errorHandler.fatalError('Attribute ' + qname + ' redefined')
233
+ if (el.attributeNames.hasOwnProperty(qname)) {
234
+ errorHandler.fatalError('Attribute ' + qname + ' redefined')
235
+ }
234
236
  el.addValue(qname, value, startIndex)
235
237
  }
236
238
  var attrName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmldom/xmldom",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "A pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module.",
5
5
  "keywords": [
6
6
  "w3c",