Live Element Lists vs Static Ones, Why document.getElementsByClassName is different to document.querySelector(‘.className’)¬†: Bitesize¬†JS

Bitesize Javascript series I was working on a bug in our code base with a colleague, when he noticed something strange about the behaviour of document.getElementsByClassName. In our code base it had been implemented as if it acted like document.querySelector, ie. you could save a list of elements to a variable, then mess with those…
Read more