Я использую следующий код, но сбой в IE. Сообщение:
Невозможно получить значение свойства 'add': object равно null или undefined "
Я предполагаю, что это просто проблема поддержки IE. Как бы вы сделали следующий код в IE?
Любые идеи?
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);