Closed adamgian closed 2 years ago
innerHTML
outerHTML
foo.innerHTML = "<div class="foo bar"></div>";
foo.outerHTML += "<div class="foo bar"></div>";
insertAdjacentHTML()
insertAdjacentHTML("beforeend", "<div class="foo bar"></div>")
.closest()
.closest('.selector-string')
Added in 1ff6cb94bb37cdf390a8bdd1225343d3305413f1
innerHTML
andouterHTML
:foo.innerHTML = "<div class="foo bar"></div>";
foo.outerHTML += "<div class="foo bar"></div>";
insertAdjacentHTML()
:insertAdjacentHTML("beforeend", "<div class="foo bar"></div>")
.closest()
:.closest('.selector-string')