Skip to content

Commit 6912175

Browse files
committed
prefer $ instead of document.querySelector
1 parent a59c327 commit 6912175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/dom/element.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300

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

0 commit comments

Comments
 (0)