MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / setTextContent

Function setTextContent

static/js/codemirror/codemirror.js:5018–5023  ·  view source on GitHub ↗
(e, str)

Source from the content-addressed store, hash-verified

5016 }
5017
5018 function setTextContent(e, str) {
5019 if (ie_lt9) {
5020 e.innerHTML = "";
5021 e.appendChild(document.createTextNode(str));
5022 } else e.textContent = str;
5023 }
5024
5025 function getRect(node) {
5026 return node.getBoundingClientRect();

Callers 2

patchDisplayFunction · 0.85
eltFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected