prefer $ instead of document.querySelector

This commit is contained in:
nikneym
2025-09-25 19:30:10 +03:00
parent a59c32757e
commit 6912175e7e

View File

@@ -300,7 +300,7 @@
<script id=insertAdjacentHTML>
// Insert "beforeend".
const wrapper = document.querySelector("div#insert-adjacent-html-inner-wrapper");
const wrapper = $("#insert-adjacent-html-inner-wrapper");
wrapper.insertAdjacentHTML("beforeend", "<h1>title</h1>");
let newElement = wrapper.lastElementChild;
testing.expectEqual("H1", newElement.tagName);