Skip to content

Commit 0a53f64

Browse files
authored
dom-parsing/XMLSerializer.ts: fix a typo in a comment (#133)
The value ‘true’ is passed to require well-formed output, not ‘false’ as stated in the comment.
1 parent 2a44f34 commit 0a53f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dom-parsing/XMLSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class XMLSerializer {
4848
export function serializeToWellFormedString(root: Node): string {
4949
root = asObject(root, Node);
5050

51-
// Produce an XML serialization of root passing a value of false for the require well-formed
51+
// Produce an XML serialization of root passing a value of true for the require well-formed
5252
// parameter, and return the result.
5353
const result: string[] = [];
5454
produceXmlSerialization(root, true, result);

0 commit comments

Comments
 (0)