title: Changing style of getElementsByClassName gives compile error
body: <p>I am trying to change the style of all of the elements which I received by calling the method getElementsByClassName. The thing is that it does work when it has compiled before (I commented these rows out to let it compile), it just says the error in the cmd. After it compiled I just set the lines back to normal, they keep giving errors but are working in the browser. Any thoughts on this weird behavior? </p>
  
  <p><a href="https://i.stack.imgur.com/tHHet.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tHHet.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0v94i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0v94i.png" alt="enter image description here"></a></p>
  
  <p>When commented out: </p>
  
  <p><a href="https://i.stack.imgur.com/0Fwtu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Fwtu.png" alt="enter image description here"></a></p>
  
  <p>When not commented and giving errors: </p>
  
  <p><a href="https://i.stack.imgur.com/n6tIA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n6tIA.png" alt="enter image description here"></a></p>