title: classList.toggle not working
body: <p>I'm trying to toggle a cssclass using jQuery on an SVG element each time a div element is clicked.</p>
  
  <p>From what I've read, there are issues doing this with SVG elements and this way was a solution:</p>
  
  <pre><code>$("#div1").click(function() {
      $("#svg1").classList.toggle("clicked");
  });`
  </code></pre>
  
  <p>However, this doesn't work. So I assumed it was due to the use of an SVG element in this function. But when replacing said SVG element with a div element, like this:</p>
  
  <pre><code>$("#div1").click(function() {
      $("#div2").classList.toggle("clicked");
  });
  </code></pre>
  
  <p>the class still won't toggle, despite there being no SVG element in the function.</p>