Bug 1141498, part 1 - Stop using Node.remove() in the DOM animation test's testcommon.js. r=dholbert

This commit is contained in:
Jonathan Watt 2015-02-27 10:23:49 +00:00
Родитель 8a63efcd80
Коммит dd4fe529bd
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -12,7 +12,9 @@ function addDiv(t) {
var div = document.createElement('div');
document.body.appendChild(div);
if (t && typeof t.add_cleanup === 'function') {
t.add_cleanup(function() { div.remove(); });
t.add_cleanup(function() {
div.parentNode.removeChild(div);
});
}
return div;
}