зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1141498
, part 1 - Stop using Node.remove() in the DOM animation test's testcommon.js. r=dholbert
This commit is contained in:
Родитель
8a63efcd80
Коммит
dd4fe529bd
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче