I have
<div id="862976/image.png">
and I'm trying to identify the element by:
document.querySelector('#862976/image.png')
but it tells me that the selector is invalid, probably because an id can't contain the characters (# / .)
I have tried to escape the characters with CSS.escape:
document.querySelector(CSS.escape('#862976/image.png'))
But the result is null
How do I identify the element, without changing its id?