happy-dom 2.27.2 → 2.27.3
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.
Potentially problematic release.
This version of happy-dom might be problematic. Click here for more details.
@@ -71,7 +71,7 @@ var XMLSerializer = /** @class */ (function () {
|
|
71
71
|
for (var _i = 0, _a = Object.values(element._attributes); _i < _a.length; _i++) {
|
72
72
|
var attribute = _a[_i];
|
73
73
|
if (attribute.value !== null) {
|
74
|
-
attributeString += ' ' + attribute.name + '="' + he_1.
|
74
|
+
attributeString += ' ' + attribute.name + '="' + he_1.escape(attribute.value) + '"';
|
75
75
|
}
|
76
76
|
}
|
77
77
|
return attributeString;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "happy-dom",
|
3
|
-
"version": "2.27.
|
3
|
+
"version": "2.27.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"homepage": "https://github.com/capricorn86/happy-dom",
|
6
6
|
"repository": "https://github.com/capricorn86/happy-dom",
|
@@ -74,5 +74,5 @@
|
|
74
74
|
"ts-jest": "^26.5.6",
|
75
75
|
"typescript": "^4.2.4"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "016e1acdfdffa663200aeb269f0d2ea4c7d11dfd"
|
78
78
|
}
|
@@ -3,7 +3,7 @@ import Node from '../nodes/node/Node';
|
|
3
3
|
import SelfClosingElements from '../config/SelfClosingElements';
|
4
4
|
import UnclosedElements from '../config/UnclosedElements';
|
5
5
|
import DocumentType from '../nodes/document-type/DocumentType';
|
6
|
-
import {
|
6
|
+
import { escape } from 'he';
|
7
7
|
import INode from '../nodes/node/INode';
|
8
8
|
import IElement from '../nodes/element/IElement';
|
9
9
|
|
@@ -70,7 +70,7 @@ export default class XMLSerializer {
|
|
70
70
|
let attributeString = '';
|
71
71
|
for (const attribute of Object.values((<Element>element)._attributes)) {
|
72
72
|
if (attribute.value !== null) {
|
73
|
-
attributeString += ' ' + attribute.name + '="' +
|
73
|
+
attributeString += ' ' + attribute.name + '="' + escape(attribute.value) + '"';
|
74
74
|
}
|
75
75
|
}
|
76
76
|
return attributeString;
|