* Converts the math node into a string, similar to innerText. Applies to * MathDomNode's only.
()
| 933 | |
| 934 | |
| 935 | toText() { |
| 936 | // To avoid this, we would subclass documentFragment separately for |
| 937 | // MathML, but polyfills for subclassing is expensive per PR 1469. |
| 938 | // $FlowFixMe: Only works for ChildType = MathDomNode. |
| 939 | const toText = child => child.toText(); |
| 940 | |
| 941 | return this.children.map(toText).join(""); |
| 942 | } |
| 943 | |
| 944 | } |
| 945 |