commit | 56387aa57bc11d0f969c5bb9824a39c804202be3 | [log] [tgz] |
---|---|---|
author | tkent <tkent@chromium.org> | Wed May 17 09:12:21 2017 |
committer | Commit bot <commit-bot@chromium.org> | Wed May 17 09:12:21 2017 |
tree | c5652197141c516bc8b6d963e763fb7fc2d070bf | |
parent | 05e9dab183abf911f6a390ec6bdd77692760a824 [diff] |
MutationObserver: Correct MutationRecords for Node.replaceChild(). parent.replaceChild(parent.lastChild, parent.firstChild); This code produced just one MutationRecord, but it should produce two MutationRecords. This CL makes replaceChild() implementation close to the DOM standard. New behavior matches to Firefox and Safari. BUG=722741 Review-Url: https://codereview.chromium.org/2889523002 Cr-Commit-Position: refs/heads/master@{#472393}