We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59212ff + fa0265a commit b602619Copy full SHA for b602619
ts/adaptors/lite/Parser.ts
@@ -1,3 +1,4 @@
1
+
2
/*************************************************************
3
*
4
* Copyright (c) 2018 The MathJax Consortium
@@ -358,7 +359,7 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
358
359
const content = this.serializeInner(adaptor, node, xml);
360
const html =
361
'<' + tag + (attributes ? ' ' + attributes : '')
- + (content && !SELF_CLOSING[tag] ? `>${content}</${tag}>` : xml ? '/>' : '>');
362
+ + ((!xml || content) && !SELF_CLOSING[tag] ? `>${content}</${tag}>` : xml ? '/>' : '>');
363
return html;
364
}
365
0 commit comments