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:
ylemkimon
2018-08-21 08:53:45 +09:00
committed by Kevin Barabash
parent f70222769b
commit 96310815c5
3 changed files with 4 additions and 55 deletions

View File

@@ -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);
};