mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 22:18:41 +00:00
Remove indexOf & textContent polyfill for IE 8 (#1645)
* Remove indexOf polyfill for IE 8 * Remove textContent polyfill for IE 8
This commit is contained in:
committed by
Kevin Barabash
parent
f70222769b
commit
96310815c5
3
katex.js
3
katex.js
@@ -22,7 +22,6 @@ import {
|
||||
PathNode,
|
||||
LineNode,
|
||||
} from "./src/domTree";
|
||||
import utils from "./src/utils";
|
||||
|
||||
import type {SettingsOptions} from "./src/Settings";
|
||||
import type {AnyParseNode} from "./src/parseNode";
|
||||
@@ -42,7 +41,7 @@ let render = function(
|
||||
baseNode: Node,
|
||||
options: SettingsOptions,
|
||||
) {
|
||||
utils.clearNode(baseNode);
|
||||
baseNode.textContent = "";
|
||||
const node = renderToDomTree(expression, options).toNode();
|
||||
baseNode.appendChild(node);
|
||||
};
|
||||
|
Reference in New Issue
Block a user