refactor: remove dead code from xmldom-elements-to-mathml-elements-adapter

This commit is contained in:
Alexandre Nunes 2020-10-03 11:25:31 -03:00
parent b2d2b9f3a5
commit c6a65e22ba

@ -8,7 +8,7 @@ export class ElementsToMathMLAdapter {
private _convertElement(el: Element): MathMLElement {
return {
name: el.tagName,
attributes: el.attributes ? this._convertElementAttributes(el.attributes) : {},
attributes: this._convertElementAttributes(el.attributes),
value: this._hasElementChild(el) ? '' : el.textContent || '',
children: this._hasElementChild(el)
? this.convert(Array.from(el.childNodes) as Element[])