Commit c5f5d3268d845bdaf39f506259c44d255cdab8d5

Authored by Rémi Emonet
1 parent 423c96d15c
Exists in master

appendChild

Showing 1 changed file with 2 additions and 2 deletions

... ... @@ -99,11 +99,11 @@
99 99 var html = document.createElement("a");
100 100 html.textContent = "[html]";
101 101 html.setAttribute("href", "lesson-"+l+".html");
102   - cont.append(html)
  102 + cont.appendChild(html)
103 103 var pdf = document.createElement("a");
104 104 pdf.textContent = "[pdf]";
105 105 pdf.setAttribute("href", "export-lesson-"+l+".pdf");
106   - cont.append(pdf);
  106 + cont.appendChild(pdf);
107 107 });
108 108 forEachInSelector("a", function(e, i) {
109 109 e.setAttribute("target", "_blank");