Updated from master

This commit is contained in:
Felix Krause 2016-05-12 15:36:10 +02:00
parent 97cd593463
commit bc9df81800
1 changed files with 1 additions and 4 deletions

View File

@ -88,10 +88,7 @@
</section> </section>
<script type="text/javascript"> <script type="text/javascript">
function setTextContent(element, text) { function setTextContent(element, text) {
while (element.firstChild!==null) { element.innerHTML = text;
element.removeChild(element.firstChild); // remove all existing content
}
element.appendChild(document.createTextNode(text));
} }
function parse() { function parse() {
var r = new XMLHttpRequest(); var r = new XMLHttpRequest();