RESOLVED DUPLICATE of bug 149546 148781
node.replaceChild(node.lastChild, node.firstChild) should add two mutation records
https://bugs.webkit.org/show_bug.cgi?id=148781
Summary node.replaceChild(node.lastChild, node.firstChild) should add two mutation re...
Ryosuke Niwa
Reported 2015-09-03 20:18:54 PDT
Because of the way replaceChild is defined (https://dom.spec.whatwg.org/#dom-node-replacechild), it should add two mutation records when the inserted node was originally a sibling of the reference child. e.g. node.replaceChild(node.lastChild, node.firstChild) when node has two children. This bug was found by the newly added test: LayoutTests/http/tests/w3c/dom/nodes/MutationObserver-childList.html
Attachments
Radar WebKit Bug Importer
Comment 1 2015-09-03 20:19:40 PDT
Chris Dumez
Comment 2 2015-09-24 16:16:59 PDT
*** This bug has been marked as a duplicate of bug 149546 ***
Note You need to log in before you can comment on or make changes to this bug.