mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1141498
, part 1 - Stop using Node.remove() in the DOM animation test's testcommon.js. r=dholbert
--HG-- extra : rebase_source : 70fdcc2f1419ae1ea88cc58db909efe11ba620a1
This commit is contained in:
parent
5d46e8dcd3
commit
5825187ee1
@ -12,7 +12,11 @@ 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() {
|
||||
if (div.parentNode) {
|
||||
div.parentNode.removeChild(div);
|
||||
}
|
||||
});
|
||||
}
|
||||
return div;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user