I want to write the code like that document.querySelector('#foo\bar'); and it does not work
<div id="foo\bar"></div>
<div id="foo:bar"></div>
<script>
document.querySelector('#foo\\\\bar'); // Match the first div
document.querySelector('#foo\\:bar'); // Match the second div
</script>