title: Code with classList does not work in IE?
body: <p>I'm using the following code, but having it fail in IE.
  The message is:</p>
  
  <blockquote>
    <p>Unable to get value of the property 'add': object is null or undefined"</p>
  </blockquote>
  
  <p>I assume this is just an IE support issue. How would you make the following code work in IE?</p>
  
  <p>Any ideas?</p>
  
  <pre><code>var img = new Image();
  img.src = '/image/file.png';
  img.title = 'this is a title';
  img.classList.add("profilePic");
  var div = document.createElement("div");
  div.classList.add("picWindow");
  div.appendChild(img);
  content.appendChild(div);
  </code></pre>