[Webkit-unassigned] [Bug 148781] New: node.replaceChild(node.lastChild, node.firstChild) should add two mutation records

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 3 20:18:54 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=148781

            Bug ID: 148781
           Summary: node.replaceChild(node.lastChild, node.firstChild)
                    should add two mutation records
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rniwa at webkit.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150904/48c2a40d/attachment.html>


More information about the webkit-unassigned mailing list