* Converts the math node into a MathML-namespaced DOM element.
()
| 6762 | |
| 6763 | |
| 6764 | toNode() { |
| 6765 | if (this.character) { |
| 6766 | return document.createTextNode(this.character); |
| 6767 | } else { |
| 6768 | const node = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mspace"); |
| 6769 | node.setAttribute("width", this.width + "em"); |
| 6770 | return node; |
| 6771 | } |
| 6772 | } |
| 6773 | /** |
| 6774 | * Converts the math node into an HTML markup string. |
| 6775 | */ |
nothing calls this directly
no test coverage detected