mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 782480 - Clear parentNode reference when removing a child in JSDOMParser (r=bnicholson)
This commit is contained in:
parent
532e104e2c
commit
1c877fc379
@ -312,6 +312,7 @@
|
|||||||
if (childIndex == -1) {
|
if (childIndex == -1) {
|
||||||
throw "removeChild: node not found";
|
throw "removeChild: node not found";
|
||||||
} else {
|
} else {
|
||||||
|
child.parentNode = null;
|
||||||
return childNodes.splice(childIndex, 1)[0];
|
return childNodes.splice(childIndex, 1)[0];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user