Sizzle/jQuery like DOM nodes shortcut for document.querySelector To avoid an extra function call we inline the above escape
document.querySelector
escape
DOM selector
Optional
It falls back to window.document
window.document
Whether to avoid escaping : in the selector string
:
const $container = dom(".my-section:");const $el = dom("[data-some-attr]", $container); Copy
const $container = dom(".my-section:");const $el = dom("[data-some-attr]", $container);
Sizzle/jQuery like DOM nodes shortcut for
document.querySelectorTo avoid an extra function call we inline the aboveescape